document-ready
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/document-ready package

2.0.2 • Public • Published

document-ready Build Status

Document ready listener for modern browsers

Install

$ npm install --save document-ready

Usage

var ready = require('document-ready')
 
ready(function () {
  //=> DOM is ready
})

API

ready(callback) -> undefined

callback

Required
Type: function

A function to call once the DOM has loaded. If the DOM is already loaded, the callback will be called on the next tick.

License

MIT © Ben Drucker

Readme

Keywords

Package Sidebar

Install

npm i document-ready

Weekly Downloads

1,030

Version

2.0.2

License

MIT

Unpacked Size

3.83 kB

Total Files

5

Last publish

Collaborators

  • bendrucker