Socket
Socket
Sign inDemoInstall

document-ready

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    document-ready

Document ready listener for modern browsers


Version published
Weekly downloads
1.1K
decreased by-4.37%
Maintainers
1
Install size
4.74 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 30 Nov 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc