快速了解AMP
在 Google I/O 2018 活动中,有几个议程提到了 AMP,The Accelerated Mobile Pages,从字面意思看感觉是一种移动端页面的加速技术。了解过以后个人感觉是把平常一些性能优化手段变成强制要求,通过组件使用来限制和指引开发的方式。
下面是官网给的AMP定义:
AMP is an open-source library that provides a straightforward way to create web pages that are compelling, smooth, and load near instantaneously for users. AMP pages are just web pages that you can link to and are controlled by you.
划重点: AMP 网页采用 3 大核心组件构建而成
AMP HTML
AMP HTML 是为确保可靠性能而具有某些限制的 HTML。AMP JS
AMP JS 库可确保快速渲染 AMP HTML 网页。AMP Cache
Google AMP Cache 可用于提供缓存的 AMP HTML 网页。
划重点: AMP 网页的7大设计原则
设计原则可以指导开发人员设计和开发一致的AMP网页,怕翻译不准确,附上原文
用户体验 > 开发者体检 > 实现难度
User Experience > Developer Experience > Ease of