Sunday, March 06, 2005

Get Page Load Time

How can I get the time to load a page. For example when I type in address bar and hit enter, I want to get the total time span from start to finish when I hit enter until the page is fully loaded.

The time depends on the url that you request and how many network nodes seprate you and the other end plus your connection speed. We can suppose that the time is constant and the time that a page loads can be calculated depends on your connection speed. If your are using modem, DSL Cable Modem, or ISDN the time will vary.

I don't think a mesurement tool exists however try this code and use it as a starting point.

<script language="javascript">
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();

<script language="javascript">



Post a Comment

<< Home