1.0.2 • Published 8 years ago

@f/domready v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

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