Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page loading timer

Status
Not open for further replies.

damipera

Technical User
Joined
Dec 1, 2005
Messages
134
Location
GB
hi guys! can you point me to the direction where i could find a javascript that tells the speed a page has loaded, preferably in millisecond?(sort of like a timer). i want it to write to that page also. thanks for your help.

 
Modulo possible complication due to frames etc, at the very top of the page, such as immediately under the script section within the header.
[tt]
<script type="text/javascript">
var time_s,time_e;
time_s=new Date().getTime();
window.onload=function() {
time_e=new Date().getTime();
alert((time_e-time_s)+" milliseconds");
}
</script>
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top