@f/domready

Run a function when the DOM is ready

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Mar 18, 2016Jan 9, 2016Minified + gzip package size for @f/domready in KB

Readme

domready

Build status Git tag NPM version Code style

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.