Link to home
Start Free TrialLog in
Avatar of Lukasz Chmielewski
Lukasz ChmielewskiFlag for Poland

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 ?
Avatar of Maverick543
Maverick543

I am not aware of any event on the start of page loading.
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
ASKER CERTIFIED SOLUTION
Avatar of Lukasz Chmielewski
Lukasz Chmielewski
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.