Onload (Load Event Start & End)

Collected from: Web Browser (API)

The onload event is triggered when the DOM is loaded and the page's dependencies have been loaded and processed (images, CSS, JavaScript, etc. but not iframes).
It has a start and an end as listeners can be attached at the event to trigger JavaScript execution when the event fires. The Load event fires when the initial HTML document has been completely loaded and parsed (without waiting for images, and iframes to finish loading).

External scripts with a "defer" and/or "async" attribute have also been executed at this stage. As well as styles sheets with the async attribute.

Back to Table of Contents