Measuring Site Load Times via performance api
问题 I listened to a talk by Steve Souders a few days ago and he mentioned the new performance spec that newer browsers are implementing and it was pretty intriguing. In his speech he mentioned the following example as a means of measuring perceived page load time: var timing = performance.timing; var loadtime = timing.loadEventEnd - timing.navigationStart; alert("Perceived time:"+loadtime); Clearly this is a basic example, but when trying it on my development environment, I get crazy numbers like