vanilla-ready
v1.0.1
Published
Vanilla JS equivalent of jQuery .ready(): Execute a callback function when the DOM is fully loaded.
Downloads
8
Maintainers
Readme
vanilla-ready
Vanilla JS equivalent of jQuery .ready(): Execute a callback function when the DOM is fully loaded.
Based on Vanilla JavaScript Document Ready (Cross-Browser) by Raymon Schouwenaar
Usage
<head>
...
<script src="vanilla-ready.min.js"></script>
<script>
document.ready(function () {
// Place your code here
});
</script>
...
</head>
Browser support
- Chrome (latest 2)
- Edge (latest 2)
- Firefox (latest 2)
- Internet Explorer 8+
- Opera (latest 2)
- Safari (latest 2)
- PhantomJS 2
License
The code is available under the MIT license.
[c]2016 @dmarchena