lets you know when the dom is ready
JavaScript HTML Makefile
Latest commit bddb9f9 Apr 24, 2015 @ded 1.0.8
Permalink
Failed to load latest commit information.
make fixes #46 Apr 24, 2015
src fixes #46 Apr 24, 2015
tests more extraneous vars Feb 15, 2014
.gitignore set loaded state if page is already loaded Apr 21, 2011
LICENSE add MIT license file. closes #23 Nov 22, 2013
Makefile boosh Apr 14, 2011
README.md missing back tick Mar 5, 2014
component.json update component file Feb 21, 2014
package.json 1.0.8 Apr 24, 2015
ready.js fixes #46 Apr 24, 2015
ready.min.js fixes #46 Apr 24, 2015

README.md

domReady

It's easy. Works like this:

domready(function () {
  // dom is loaded!
})

Deprecation Notice

Compatibility with IE6, IE7, and IE8 has been fully dropped. If your application requires this level of support, please use the 0.3.0 release.


Browser support

  • IE9+
  • Firefox 4+
  • Safari 3+
  • Chrome *
  • Opera *

Building

npm install
make
open tests/test.html

Including with Ender

Don't already have Ender? Install it like this:

npm install ender -g

Include domready in your package:

ender add domready

Then use it like this

require('domready')(function () {
  $('body').html('<p>boosh</p>')
})

// or

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