-
compute load time of iframe contents
Hi,
I am trying to find the best way to caculate the load time for the contents of an iframe. I do this by recording the start time before the iframe starts loading and the end time on the onload call of the iframe. xample:
<IFRAME id="frame1" src="about:blank" WIDTH=200 HEIGHT=200 ONLOAD="record_endTime()" >
</IFRAME>
<script>
url = <some url>;
record_startTime();
document.getElemenetById('frame1').src=url;
</script>
Is there any guarantee that the record_startTime will always execute just before the loading of the iframe, esp in the case when I may have multiple components (images and other iframes ) on the same page? My idea is to make record_startTime and frame.src=<url> atomic. Is that possible in some other way?
Any help is appreciated.
Thanks.
Mita
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks