Fires a function when the document is ready.
Parameters:
Name | Type | Description |
---|---|---|
fn | function | The function to fire on document ready. |
- Since
- 1.0.0
- Source
Returns:
- Type:
- void
Example
import { ready } from "@gravityforms/utils";
function Example() {
// do something on document ready
};
ready( Example );