- 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.
- VMware View Security Essentials
- Learning Chef
- 深度學習:Java語言實現
- Visual C#.NET Web應用程序設計
- Web程序設計:ASP.NET(第2版)
- Android Game Programming by Example
- 計算語言學導論
- 軟件測試分析與實踐
- 現代CPU性能分析與優化
- Three.js權威指南:在網頁上創建3D圖形和動畫的方法與實踐(原書第4版)
- DevOps 精要:業務視角
- Kohana 3.0 Beginner's Guide
- 打造流暢的Android App
- 情境微課開發(第2版)
- Mastering Wireless Penetration Testing for Highly Secured Environments