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

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.

主站蜘蛛池模板: 乐至县| 海口市| 米易县| 阳城县| 石渠县| 牟定县| 丹东市| 客服| 抚州市| 龙门县| 元江| 杂多县| 错那县| 响水县| 东乌| 浑源县| 淄博市| 淮阳县| 乌苏市| 潢川县| 浦东新区| 新乐市| 齐河县| 措美县| 怀安县| 新蔡县| 遂川县| 荥经县| 衡阳市| 赣榆县| 油尖旺区| 丰台区| 峨边| 洪雅县| 汤原县| 页游| 潍坊市| 科技| 滦南县| 忻城县| 古交市|