let's you know when the dom is ready
Switch branches/tags
Nothing to show
Pull request Compare This branch is 60 commits behind ded:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
make
src
tests
.gitignore
.gitmodules
Makefile
README.md
package.json
ready.js
ready.min.js

README.md

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>');
});