Page load time in Google Chrome or Mozilla Firefox

允我心安 提交于 2019-12-03 10:33:21

As for Firefox, the op has already answered his own question (Menu - Web Developer - Network or Ctrl + Shift + K - Network or Ctrl + Shift + Q), but I'd like to mention the "app.telemetry Page Speed Monitor" addon, which does not require you to open the web console first. It'll just show the load time in ms in the status bar (it'll even show details when you click it).
https://addons.mozilla.org/en-US/firefox/addon/apptelemetry/
The only downside seems to be the Facebook/Twitter button.

As for Chrome/Chromium, I second Andy Davies' suggestion, the Page load time plugin is awesome, it shows the load time next to the location bar and it also provides details.

Also note you can now get this via javascript via the window.performance object (Chrome, Firefox and IE9+).

Try this:

window.onload = function(){
  setTimeout(function(){
    var t = performance.timing;
    console.log(t.loadEventEnd - t.responseEnd);
  }, 0);
}

More info here: http://www.html5rocks.com/en/tutorials/webperformance/basics/

As @nick-rtz does I use webpagetest for serious testing, if you want a quick look at load time and don't want to use the dev, tools this Chrome extension will help - https://chrome.google.com/webstore/detail/page-load-time/fploionmjgeclbkemipmkogoaohcdbig

I use this tool: http://www.webpagetest.org/ But it's for live sites. If you want to benchmark local files that wouldn't be representative of actualy usage, but you might want to measure rendering times and not just transport times. Note that load times depend on where geographically on the planet the user is relative to the server.

For loadtime of a site that is live, I would also look into Real User Monitoring (aka RUM) to get performance data from your real users in production. You can do this yourself with open source projects like Boomerang and Bucky or go with a vendor. The data is invaluable! The tool mentioned by @vikramvi helps you track page performance in dev/test and helps prevent performance regression early in the dev cycle.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!