dom-ready1.0.6 • Public • Published
Cross-Browser DOM Ready Handler
A minimalist, cross-browser "DOM Ready" event handler.
The test.html is minimal and shows a typical usage.
But it's really very simple, much like the following code snippet:
The source code has been meticulously gathered from various authors (list follows) and compiled in this minimal closure. Once minified, the script is merely a few hundred bytes long.
domready, by Elias Torres
IEContentLoaded, by Diego Perini
onDOMContentLoaded, by Ilya Kantor (Russian)
domassistant, by Robert Nyman
DOMContentLoaded, by Microsoft Corp.
domcontentloaded, by Tanny O'Haley