[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 502
  • Last Modified:

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 ?
0
Lukasz Chmielewski
Asked:
Lukasz Chmielewski
1 Solution
 
Maverick543Commented:
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
0
 
Lukasz ChmielewskiAuthor Commented:
yes, this is accurate, but I do not want to include any js in head section of the page...
0
 
g3k0Commented:
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.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now