JSPM

  • Created
  • Published
  • Downloads 399808
  • Score
    100M100P100Q221283F

bullet proof DOM ready method

Package Exports

  • domready

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 (domready) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

domReady

It's easy. Works like this:

domReady(function () {
  // dom is loaded!
});

Browser support

  • IE6,7,8,9
  • Firefox 2,3,4
  • Safari 3,4,5
  • Chrome 1-10
  • Opera

Building

git clone git://github.com/ded/domready.git
cd domready
git submodule update --init
make

Including with Ender

Don't already have Ender? Ender relies on Node, and NPM. Install it like this:

npm install ender

Once you're good with that. Include domready in your package:

ender -b domready[,a,b,c]

With Ender:

$.domReady(function () {
  $(document.body).html('<p>boosh</p>');
});