JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 971
  • Score
    100M100P100Q134974F
  • License MIT

Document ready listener for modern browsers

Package Exports

  • document-ready

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (document-ready) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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