官术网_书友最值得收藏!

What is "good" web performance?

Measuring web performance is complicated. Since we are interested ultimately in providing a good user experience, this means we are interested in optimizing for the user's perception of how quickly the page loads, rather than an absolute, objective measure of how fast the entire page actually loads. You can think of it as building an illusion for the user: use a bunch of tricks to get just enough of the page rendered so the user thinks it has loaded, and in the meantime finish the job in the background.

When performance-tuning a web page, we need to optimize for getting something usable onto the user's screen as quickly as possible. This has an impact on what we must focus on to make a page seem fast: things such as prioritizing above-the-fold content and time-to-first-byte; even exploiting low-level transport-layer knowledge, such as TCP packet size, to achieve an interactive and responsive page render in the first 14 KB of data sent from the web server.

In general, following Google's Response-Animation-Idle-Load (RAIL) approach, you are doing well if you can achieve:

  • Initial server response within 100 ms
  • Initial usable and responsive page content load within 1 s
  • Frame rate of 60 fps

These numbers will translate into a site that loads fast and that feels responsive, without any lag. This is a site that users are more likely to stay on.

主站蜘蛛池模板: 海城市| 合川市| 营山县| 会宁县| 广南县| 新田县| 额济纳旗| 东乡县| 山西省| 登封市| 正宁县| 大埔县| 甘泉县| 睢宁县| 扶沟县| 甘谷县| 元江| 浠水县| 迁西县| 讷河市| 闵行区| 射阳县| 昭觉县| 兴仁县| 亚东县| 怀来县| 顺平县| 静宁县| 威信县| 济源市| 怀柔区| 洮南市| 电白县| 北安市| 祁东县| 房山区| 黄大仙区| 广平县| 蒙山县| 响水县| 榕江县|