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 ?
LVL 27
Lukasz ChmielewskiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Components

From novice to tech pro — start learning today.