The Wayback Machine - https://web.archive.org/web/20100508033345/http://ie.microsoft.com:80/testdrive/HTML5/87DOMContent-Loaded/Default.html
Return to TestDrive Demos

DOMContentLoaded

DOMContentLoaded lets you start running script sooner!
The DOMContentLoaded event fires when parsing of the current page is complete; the load event fires when all files have finished loading from all resources, including ads and images. DOMContentLoaded is a great event to use to hookup UI functionality to complex web pages.

Event info

When each event fires, the word "DONE!" is printed to the screen. To try the test again, press Ctrl+F5 (to refresh this page without using cached images).

"DOMContentLoaded"
Waiting...
Difference:
--
"load"
Waiting...

The > 2MB images above should delay the load event, but not the DOMContentLoaded event