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

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.

主站蜘蛛池模板: 易门县| 阿图什市| 建阳市| 资溪县| 松溪县| 西昌市| 寿阳县| 东乡族自治县| 沙河市| 拜泉县| 陇川县| 泸水县| 枞阳县| 江门市| 田阳县| 南皮县| 张家口市| 永德县| 永靖县| 牙克石市| 荔波县| 通海县| 贺兰县| 道孚县| 揭东县| 陈巴尔虎旗| 乌拉特后旗| 丰城市| 铅山县| 本溪| 梁山县| 札达县| 兰溪市| 杨浦区| 伊春市| 望都县| 东兰县| 洪洞县| 扎兰屯市| 五指山市| 策勒县|