Skip to content
lets you know when the dom is ready
JavaScript HTML Makefile
Branch: master
Clone or download

Latest commit

ded Merge pull request #55 from osartun/master
Compatibility with server-side rendering
Latest commit 0deb5eb Aug 16, 2017

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
make fixes #46 Apr 24, 2015
src Compatibility with server-side rendering Aug 13, 2017
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-lock.json Checking in package-lock.json Aug 13, 2017
package.json 1.0.8 Apr 24, 2015
ready.js Compatibility with server-side rendering Aug 13, 2017
ready.min.js Compatibility with server-side rendering Aug 13, 2017

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>')
})
You can’t perform that action at this time.