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

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.

主站蜘蛛池模板: 宝丰县| 拜城县| 平武县| 济南市| 塘沽区| 翁牛特旗| 新乐市| 隆昌县| 山阳县| 澎湖县| 筠连县| 桦南县| 五原县| 西盟| 永靖县| 丘北县| 滨州市| 汽车| 海原县| 旬阳县| 呈贡县| 高清| 常山县| 巴马| 普宁市| 喀喇| 普宁市| 从化市| 读书| 汝阳县| 鄄城县| 海丰县| 鲁甸县| 海晏县| 芦山县| 贡山| 桐庐县| 宁化县| 绥宁县| 永济市| 酉阳|