locked
Webpage redirection time RRS feed

  • Question

  • 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.
    Saturday, December 1, 2012 4:43 PM

Answers

  • IE has a feature called window.performance:
    http://msdn.microsoft.com/en-us/library/ie/ff974680(v=vs.85).aspx
    That might give you the info you want.


    Unless you just wanted to stop watch yourself?

    • Proposed as answer by Cobra Tap Saturday, December 1, 2012 10:21 PM
    • Marked as answer by Song Tian Friday, December 7, 2012 8:42 AM
    Saturday, December 1, 2012 10:21 PM