Webpage redirection time

Discussion in 'JavaScript' started by AbhijeetMuneshwar, Dec 1, 2012.

  1. #1
    Hi all,


    I want to calculate time consumed in redirecting from 1 webpage to another webpage.
    For Example:
    1) I am using Facebook in Google Chrome browser.
    I have shared 1 link on my Facebook profile like below:


    http://www.webdeveloper.com/


    2) When I click on this link from my Facebook profile, then this website will open in new tab.


    3) I want to calculate time difference in miliseconds or microseconds between below two events:
    First Event: Time of clicking link "http://www.webdeveloper.com/" from my Facebook profile.
    Second Event: Time of completely loading webpage of "http://www.webdeveloper.com/".


    Thank you in advance.
     
    AbhijeetMuneshwar, Dec 1, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    Firebug provides tools to see load times. I don't know if there's an equivalent tool in Chrome.
     
    Rukbat, Dec 1, 2012 IP
  3. AbhijeetMuneshwar

    AbhijeetMuneshwar Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Thank you for your response Rukbat.
    But the firebug doesn't help.
    When the domain is changed, the firebug restarts.
    So we can find the page load time only for current domain & not from jumping from 1 domain to another domain.
     
    AbhijeetMuneshwar, Dec 1, 2012 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    There's no 'jumping from one domain to another' - that's not how the web (or the browser) works. As soon as you click on the link, the browser considers the new URL to be the "current domain". The timing you want is from then to the end of the load of the new site, and Firebug will do that. There's zero time "jumping" from one domain to another. (Actually it takes a couple of microseconds - at most - with any current computer [for the browser code to execute], but since web times are measured in tenth of millisecond resolution, a few more or fewer microseconds won't change the measurement you get.)
     
    Rukbat, Dec 2, 2012 IP
  5. AbhijeetMuneshwar

    AbhijeetMuneshwar Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    Thank you for your responses.
    I decided to go ahead with firebug for Firefox and Developer's tool for Chrome.
    My problem is solved.
     
    AbhijeetMuneshwar, Dec 3, 2012 IP