Those firebug stats are telling you that:
- It takes 2.1 seconds from the time you started the request for your server-side code to start returning a response
- It then takes 19ms to download the response (i.e. the HTML)
- 71ms or so after that, the DOMContentLoaded event fires
- After the page has completely loaded (after the images are all downloaded), the load event is fired.
DOMContentLoaded fires as soon as the DOM is ready. The load event waits until the whole page is loaded (including any external resources like images)
Most of the time in your request (other than downloading the images) is spent waiting for the server to construct the HTML. Maybe your server-side code can be optimized to run faster?
jimr
2009-07-31 21:45:40