ready() when you need to confirm that Bily loaded. Normal event tracking does not wait for it because track() queues early calls.
Check readiness
Verify the installation
In the browser, callinit() before awaiting ready().
Know when it resolves
The promise resolves when Bily can accept queued events. During server rendering, it resolves immediately because there is no browser script to load.Handle a rejection
The promise rejects when:- The browser reports a script load error.
- Bily does not become ready before
loadTimeoutMs. - The script loads but does not expose a usable Bily browser API.
init().
Retry one failed load
After a terminal load failure, callinit() again. Then call ready() for the new attempt.
Troubleshooting
Resolve timeouts, script errors, and conflicting configuration.