Reputation: 539
How can I get the load time of a web page in Chrome's JavaScript console?
I openede google.com and tried the following commands: console.time
, console.loadTime
. Is there a specific command which I can use to obtain the full load time of a given page?
Upvotes: 2
Views: 3092
Reputation: 46
You can use the deprecated window.performance.timing
API to see different events and their timestamps. To calculate the load time for a page in milliseconds, get the time difference between the loadEventEnd
and navigationStart
like this:
window.performance.timing.loadEventEnd - window.performance.timing.navigationStart
Upvotes: 3
Reputation: 205
Go to the Performance tab in the developer tools and click on the refresh icon in the performance tab.
Upvotes: 2