views:

192

answers:

2

Wondering when does a load event occur in a browser? Is it when it receives the header information?

+3  A: 

onload is triggered after the entire document, images and all, are loaded.

Some browsers, like Firefox, also have on-content-load events that are triggered after the HTML file is delivered, but before external files like images are loaded.

konforce
+2  A: 

onload occurs when all the data has been downloaded, including all css, javascript and image files.

Marius