- AMP:Building Accelerated Mobile Pages
- Ruadhan O'Donoghue
- 160字
- 2021-07-08 10:03:58
AMP pre-rendering
AMP pre-rendering deserves a special mention here. It's used to boost the loading time of pages in the AMP cache. With AMP-HTML and AMP-JS, you get fast web pages. But with pre-rendering, you get instant pages.
Pre-rendering works by using a hidden iframe to download and render AMP pages in the background, even before the user has decided to visit them. The embedding page loads a hidden iframe with the AMP page content. The browser then loads the AMP runtime and starts to render the page. Since the AMP runtime manages resource loading, nothing else is loaded by the browser at this point (although the AMP runtime might decide to download necessary above-the-fold resources).
If the user clicks a pre-rendered AMP link, all the work to render the page has already been completed, so it can be displayed instantly simply by making the iframe visible. The JavaScript component that manages the pre-rendering iframe is called the AMP Viewer.
- Java Web基礎與實例教程(第2版·微課版)
- Learning ArcGIS Pro 2
- Java從入門到精通(第5版)
- 編寫高質量代碼:改善C程序代碼的125個建議
- 秒懂設計模式
- Android底層接口與驅動開發技術詳解
- Python算法從菜鳥到達人
- Multithreading in C# 5.0 Cookbook
- 詳解MATLAB圖形繪制技術
- Windows Embedded CE 6.0程序設計實戰
- C陷阱與缺陷
- Unity Android Game Development by Example Beginner's Guide
- Hacking Android
- CryENGINE Game Programming with C++,C#,and Lua
- 青少年Python趣味編程