24 lines
581 B
Markdown
24 lines
581 B
Markdown
|
# docReady
|
||
|
|
||
|
Cross browser document ready helper. Supported by IE8+ and good browsers.
|
||
|
|
||
|
```js
|
||
|
docReady( function() {
|
||
|
console.log("DOM is ready. Let's party");
|
||
|
});
|
||
|
```
|
||
|
|
||
|
Props to [dperini/ContentLoaded](https://github.com/dperini/ContentLoaded) for original code
|
||
|
|
||
|
## Install
|
||
|
|
||
|
Install with [Bower](http://bower.io) `bower install doc-ready`
|
||
|
|
||
|
Install with npm `npm install doc-ready`
|
||
|
|
||
|
Install with [Component](http://github.com/component/component) `component install desandro/doc-ready`
|
||
|
|
||
|
## MIT License
|
||
|
|
||
|
docReady is released under the [MIT license](http://desandro.mit-license.org).
|