- AMP:Building Accelerated Mobile Pages
- Ruadhan O'Donoghue
- 234字
- 2021-07-08 10:04:03
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.
- FuelPHP Application Development Blueprints
- arc42 by Example
- 從程序員到架構師:大數據量、緩存、高并發、微服務、多團隊協同等核心場景實戰
- Rust Cookbook
- Full-Stack Vue.js 2 and Laravel 5
- 深度強化學習算法與實踐:基于PyTorch的實現
- 并行編程方法與優化實踐
- 數據科學中的實用統計學(第2版)
- Learning Concurrency in Python
- Java Hibernate Cookbook
- Hack與HHVM權威指南
- Node.js實戰:分布式系統中的后端服務開發
- Android技術內幕(系統卷)
- 透視C#核心技術:系統架構及移動端開發
- H5頁面設計與制作(全彩慕課版·第2版)