Forum Moderators: open

Message Too Old, No Replies

Page Load Time in Milliseconds

         

akreider

5:12 am on Jan 9, 2005 (gmt 0)

10+ Year Member



Is there any mainstream browser program that can be configured to tell you the page load time with a greater degree of accuracy than one second? I want to know how many tenths of a second it takes.

I'm developing webpages that take 1 second to load and it'd be nice to know if they take 0.6 seconds or 1.4 seconds.

I'd prefer an Opera solution. But a Mozilla extension would be fine too.

Aaron

birdbrain

1:00 pm on Jan 9, 2005 (gmt 0)



Hi there akreider,

try this...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>load timer</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />

<script type="text/javascript">
//<![CDATA[

/* Original Script by Brothercake -- "http://www.brothercake.com/scripts/loadtimer.php" */

var Sn=new Date();
var Ss=Sn.getSeconds();
var Sms=Sn.getMilliseconds();
Ss=String(Ss);
Sms=String(Sms);
var sT=Ss+'.'+Sms;

function endTIME() {
var En=new Date();
var Es=En.getSeconds();
var Ems=En.getMilliseconds();
Es=String(Es);
Ems=String(Ems);
var eT=Es+'.'+Ems;

var tT=eT-sT;

document.forms[0][0].value="Loading time: "+tT+" seconds";

}
//]]>
</script>

</head>
<body onload="endTIME()">

<form action="#">
<div>
<input type="text" size="50"/>
</div>
</form>

</body>
</html>

birdbrain

akreider

11:18 pm on Jan 14, 2005 (gmt 0)

10+ Year Member



Thank that idea does work. It's a bit painful to implement it when I want to test multiple pages... but it's better than nothing!