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

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.

主站蜘蛛池模板: 新河县| 商河县| 大丰市| 姜堰市| 咸宁市| 浏阳市| 增城市| 错那县| 贵德县| 绥滨县| 桦川县| 杨浦区| 柏乡县| 吴桥县| 凤凰县| 政和县| 东海县| 阿拉善右旗| 即墨市| 镇赉县| 桂阳县| 平乡县| 万安县| 台湾省| 宜黄县| 阿勒泰市| 万宁市| 卢湾区| 巴彦县| 大荔县| 哈巴河县| 团风县| 孟村| 长乐市| 海原县| 马龙县| 大洼县| 土默特右旗| 津市市| 黄冈市| 金乡县|