domready

modern domready

34 个版本
安装
npm install domready
yarn add domready
pnpm add domready
bun add domready
README

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>')
})
版本列表
1.0.8 2015-04-24
1.0.7 2014-09-16
1.0.6 2014-08-10
1.0.5 2014-04-23
1.0.4 2014-02-22
1.0.3 2014-02-21
1.0.1 2014-02-15
1.0.0 2014-02-15
0.3.0 2014-02-15
0.2.13 2013-10-21
0.2.12 2013-07-12
0.2.11 2012-02-21
0.2.10 2011-09-18
0.2.9 2011-09-16
0.2.8 2011-09-16
0.2.7 2011-09-08
0.2.6 2011-09-08
0.2.5 2011-07-05
0.2.4 2011-06-21
0.2.3 2011-06-19
0.2.2 2011-06-19
0.2.1 2011-06-07
0.2.0 2011-06-07
0.1.1 2011-05-17
0.1.0 2011-04-21
0.0.9 2011-04-19
0.0.8 2011-04-18
0.0.7 2011-04-17
0.0.6 2011-04-17
0.0.5 2011-04-16
0.0.4 2011-04-15
0.0.3 2011-04-15
0.0.2 2011-04-14
0.0.1 2011-04-14