Skip to content

bendrucker/document-ready

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

document-ready

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

About

Document ready listener for modern browsers

Resources

License

Stars

Watchers

Forks

Packages

No packages published