How to get the load time of a web page using chrome console window and console commands?
I'm accessing a specific website lets say: www.google.com, I have opened the chrome console window and have 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?
Thanks,
转到开发人员工具中的“性能”标签,然后单击“性能”标签中的刷新图标。
You can use the window.performance.timing in Chrome console to see different events and their time-stamps.
For calculating the load-time for a page, you can check for the time difference between the loadEventEnd
and navigationStart
like below:
window.performance.timing.loadEventEnd - window.performance.timing.navigationStart
I am new here, so sorry about the silly answer. I hope this helps!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.