使用网络搜索返回的几个顶级代理,似乎在中国阻止了ampproject.org.这并不令人惊讶,因为其他Google资源被屏蔽了.
解决方法
根据博客“Getting started with AMP Html,accelerated mobile pages”
AMP does this by creating new rules for bottlenecks: JavaScript and html elements that are considered slow are prohibited. JavaScript is only allowed using libraries provided by the CDN of Google itself.
也在他们的官方网页上:
Our goal with AMP HTML is reliable performance,so we designed it to be easily cacheable by content delivery networks (CDNs). Google is offering a service that delivers AMP HTML documents given their URL through its CDN. Others can use this service or make their own or serve AMP HTML pages from a plain-old-web-server.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。