M
Madhumita
Hi,
I am trying to compute 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
mutiple components (images and other iframes ) on the same page? My
idea is to make record_startTime and frame.src=<> atomic. Is that
possible in some other way?
Thanks.
I am trying to compute 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
mutiple components (images and other iframes ) on the same page? My
idea is to make record_startTime and frame.src=<> atomic. Is that
possible in some other way?
Thanks.