0

I've been looking at the timing.navigation api and it looks like the standard way to measure the page load time is: timing.loadEventEnd - timing.navigationStart

From the WebPagetest docs: The Load Time is measured as the time from the start of the initial navigation until the beginning of the window load event (onload).

My question is two part: Is the WebPagetest load time calculation equivalent to: timing.loadEventStart - timing.navigationStart ?

And, if it is equivalent to the above, do we have a discrepancy between what it does and others in the industry?

Dan
  • 1
  • 1

1 Answers1

0

You should check these question and answer to know how to calculate the load time yourself in JS.

About how does WebPageTest to achieve that, it actually use real browsers to load and render the pages. It then has (among other things) a browser plugin called wptdriver to catch browsers developer tools information including the load time event.

Community
  • 1
  • 1
Ivan Gabriele
  • 6,433
  • 5
  • 39
  • 60