What exactly is DOM Load time? Is it time to just get complete html from server or does it include the rendering time? Please explain.
+1
A:
Roughly speaking, load time includes:
- Getting all markup, replaced element content and embeds from server
- Parsing the markup
- Applying the CSS cascade to the markup
- Rendering the page
- Running all scripts that need to run on page load (which may include scripts that get more content and cause further parsing and rendering)
From the user's point of view, load time is the time between navigating to a page and being able to access, visually and every other way, the finished output.
Robusto
2010-03-08 19:02:20
Doesn't the "load" event also wait for images?
Pointy
2010-03-08 19:03:19
So is Page load time and DOM load time represent the same?
geeth
2010-03-08 19:09:21
@Pointy: images are replaced elements.
Robusto
2010-03-08 19:38:56
ah OK. Thanks!!!
Pointy
2010-03-08 20:11:06