wf.ready()
This method ensures the Browser API is loaded on the page. It accepts a callback function that executes once the Browser API loads. Place any code you want to run after the Browser API is ready inside this callback function.
To make sure your code runs, always wrap your Browser API logic in
wf.ready()
. This ensures that the Browser API is loaded before your code runs.Syntax
Parameters
- callback:
() => void
- A function that executes once the Browser API is ready to use. Place any code using the Browser API methods inside of this callback function.