1.0.1 • Published 5 years ago

vanilla-ready v1.0.1

Weekly downloads
67
License
MIT
Repository
github
Last release
5 years ago

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.

c2016 @dmarchena