Lukasz Chmielewski
asked on
Page loading time
Hi, is there any possibility to get the page loading time with placing measuretime javascript only at the bottom of the page that calculates the load time ? Or does it have to be split into
<head>/* measure starttime */</head>
and
<script ...>/* measure stoptime */ </script>
</body>
Is there any event that javascript has that is bound to page start loading ?
<head>/* measure starttime */</head>
and
<script ...>/* measure stoptime */ </script>
</body>
Is there any event that javascript has that is bound to page start loading ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I doubt Javascript can accurately tell you how fast the page loads if it is on the very same page. I am thinking this because the script itself needs to be downloaded and loaded.
If you use firebug you can just use the net tab and it will show the load time of every request on a page as well as a total at the bottom right.
If you use firebug you can just use the net tab and it will show the load time of every request on a page as well as a total at the bottom right.
But there is some javascript code I used in the past to get an idea of the page loading times. It might not be completely accurate, but it was enough in my case
http://www.dreamincode.net/code/snippet1908.htm
Regards
Marco