Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 316027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:20:45+00:00 2026-05-12T08:20:45+00:00

I want to calculate the page load time; This means from second 0 (a

  • 0

I want to calculate the page load time; This means from second 0 (a little jquery snippet was loaded) to second x, when the whole page is loaded.

i wonder if any one had an experience with it, also ideas how to implement it correctly will be apperciated.

please i don’t need an extension, i already have firebug, i need a js solution

thanks 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:20:45+00:00Added an answer on May 12, 2026 at 8:20 am

    As others have mentioned, this is not going to be terribly accurate. But this should work reasonably.

    In your <head>, i.e., as early as possible:

    <script>
       var startTime = (new Date()).getTime();
    </script>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script>
       $(window).load(function () {
           var endTime = (new Date()).getTime();
           var millisecondsLoading = endTime - startTime;
           // Put millisecondsLoading in a hidden form field
           // or Ajax it back to the server or whatever.
       });
    </script>
    

    The key is this behavior, from the jQuery docs:

    When bound to the window element, the
    event fires when the user agent
    finishes loading all content within a
    document, including window, frames,
    objects and images.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say, I want to calculate the time taken to load a ASP.NET page. When
How can we calculate the time that a web page will take to load
I want to calculate the total size of all .mobi files from this link
I want to calculate the execution time of my ASP.NET pages and display it
all I want to calculate the height of the page ,and in my test.less
how to calculate page rendering time with or without any javascript or with multiple
I am developing one web application in that I want to check load time
From what I understand, in order to update a page or calculate a price
I'm working on this page - http://www.medilogicuk.com/v1/products/calculate-savings/ It's a simple calculator that calculates savings.
I want to calculate distance in my custom repository class. The problem is that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.