Re: Calculating Page Load Time
Chris <[email protected]>
| Newsgroups | gmane.comp.web.dom.wdf |
|---|---|
| Message-ID | <[email protected]> |
Although those complications all present themselves, this actually is a very good idea. You can always do a simple calculation to determine the download time of an item, or a set of items, but what matters usability wise is how long it takes from the user's request to the requested page being ready to use - that includes parse and initialization time, which is just the information you'd end up with. You could subtract the server's timestamp from the timestamp on the onload event, and send that back via AJAX to aggregate usability statistics on your site. You just might capture some surprising statistics relating to server lag or scripts that slow a machine to a crawl. You even could go so far as to only include the timestamp and script in every 1000 requests or so to get a good sample without burdening every single request. Great idea, Mandy! -Chris Moschini Unsubscribe [email protected] List info http://www.quirksmode.org/dom/list.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wdf-dom/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/