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

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.

主站蜘蛛池模板: 兴和县| 聂拉木县| 偃师市| 嘉义县| 舒兰市| 顺义区| 府谷县| 二连浩特市| 赤壁市| 抚顺县| 嘉义县| 青岛市| 北票市| 二手房| 丹寨县| 江口县| 且末县| 陇南市| 张家界市| 桐梓县| 昌图县| 常德市| 马公市| 泸州市| 新乡市| 桦南县| 通州市| 铜山县| 塔河县| 延寿县| 上高县| 朝阳市| 阿鲁科尔沁旗| 舞钢市| 枣强县| 周至县| 阿克苏市| 平阳县| 乌苏市| 隆尧县| 新巴尔虎左旗|