在非amp页面中使用amp脚本 [英] Using amp script in non-amp page
问题描述
在标准html5页面中使用脚本放大器会有副作用吗?
There are side effects using script amp in standard html5 pages?
我的想法是使用amp-iframe不仅在amp网页中还在网页中显示一些相关内容.
My idea is to use amp-iframe to show some related content, also in web pages and not only in amp pages.
推荐答案
一个月前我尝试过.
我的想法是使用https://cdn.ampproject.org/v0.js
异步加载图像以提高性能.
I have tried some month ago.
My idea was to use the https://cdn.ampproject.org/v0.js
to load images async for performance.
与使用飞毯和 Carousel .结果是内部验证器带来很多错误,脚本中断,您需要样板等等.
Same to use the flying carpet and the Carousel on my regular site. The result was the internal validator brings to much errors, the script breaks, you need the Boilerplate and so on.
因此答案是您不能在常规" HTML网站上使用AMP 脚本.或者,您可以使用脚本并为您修改它.但是您将失去对所有更改的持续支持.
So the answer is you can't use the AMP script on a 'normal' HTML site. Or you take the script and modify it for you. But you will lost the on going support of all changes.
这篇关于在非amp页面中使用amp脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!