- 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語言程序設計
- Java加密與解密的藝術(第2版)
- Java開發入行真功夫
- AngularJS深度剖析與最佳實踐
- Scratch 3游戲與人工智能編程完全自學教程
- JSP開發案例教程
- Microsoft System Center Orchestrator 2012 R2 Essentials
- Apache Spark 2.x for Java Developers
- Creating Stunning Dashboards with QlikView
- The Professional ScrumMaster’s Handbook
- 微信小程序開發與實戰(微課版)
- Orleans:構建高性能分布式Actor服務
- C++程序設計教程
- 軟件測試分析與實踐
- 從零開始:C語言快速入門教程