|
Post by account_disabled on Jan 6, 2024 9:17:12 GMT
这是 Reddit 吉祥物以 SVG 形式呈现,以便可以动画化(通过第三方库,意味着鼠标悬停时会产生更多开销 - 而不是资产经常出现在移动设备上的情况。 就是我们的救世主,根据 Facebook(PDF,3.4 MB)的数据,一篇文章在移动设备上的平均加载时间为 8 秒。虽然称 8 秒为永恒显然有些夸张,但考虑到你可能会在这段时间内完成第二个 Vine 视频,但可以公平地说,按照今天的标准,这至少是一个亿万年。 News 是 iOS 9 附带的独立应用程序。这两个平台目前都允许用户在各自的应用程序之外查看特定格式的文章。将两者视为RSS的特定于应用程序的刷新。 联合驱动的。虽然 Facebook 即时文章和 Apple News 使用非常不同的联合格式(Apple 新闻格。 式基于 JSON,而即时文章标记或多或少是封装在 RSS 提要中的 HTML),但它们基于相似的原则:引导您的 CMS 生成必要的联合格式,Facebook 或 Apple News 会吸收它,解析它,并通过定制和优化的渲染器使其既美观又快速。 以体验为导向。尽管 Facebook Instant Articles 和 Whatsapp 号码列表 Apple News 都注重性能,但它们同样关心使文章看起来和感觉现代。这两个平台都有一些组件,可以实现我们通常将其与定制的、手工构建的阅读体验联系在一起的流畅交互。 相比之下,加速移动页面有一个明显的重点: 基于网络的体验。AMP 文档设计为在浏览器或WebView中呈现。 原子文档。尽管 AMP 文档由 AMP 运行时进行验证、解析和部分呈现(下面有更多内容),但它们是完整且独立的文档,存在于您自己的 We。 b 服务器上(也可以选择在 CDN 缓存中),而不是集合元数据在某些时候将被转换为文章并在应用程序中呈现。 以绩效为导向。AMP 更关心 AMP 文档的性能,而不是美观或交互模式。这并不是说 AMP 文档本质上很普通(它们可以像 Facebook 即时文章或具有正确样式的 Apple 新闻文章一样有吸引力),但运行时更关心的是使文章快速渲染,而不是提供精美的视觉效果,例如疯狂的小东西。 AMP 到底是什么?足够的哲学思考和高水平的挥手。让我们详细了解一下。虽然了解 Facebook Instant Articles 和 Apple News 非常。
|
|