You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

document-ready

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

document-ready

Document ready listener for modern browsers

2.0.2
latest
Source
npmnpm
Version published
Weekly downloads
3.3K
-25.77%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

document

FAQs

Package last updated on 30 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts