Fires a function when the document is ready.

Parameters:
NameTypeDescription
fnfunction

The function to fire on document ready.

Since
  • 1.0.0
Returns:
Type: 
void
Example
import { ready } from "@gravityforms/utils";

function Example() {
    // do something on document ready
};

ready( Example );