domready
Run a function when the DOM is ready
Installation
$ npm install @f/domready
Usage
var domready = require('@f/domready')
domready(function () {
loadApp()
})
API
domready(fn)
-
fn
- The function to run when the DOM is ready. Always invoked asynchronously, even if the DOM is already loaded.
Returns: void
License
MIT