Do I have to maintain two versions of website when I want to use AMPed version on mobile?

社会主义新天地 提交于 2019-12-10 15:13:12

问题


Consider that I have a website with some subpages that I want to accelerate on mobile using AMP.

Do I have to maintain two versions of this subpages one with AMP e.g. using amp-img and one without (with img)?


回答1:


Yes, note that some of the features of non-AMP HTML won't run on AMP pages like 3rd party Javascript. So on your AMP pages, you'll be doing validations. You also need to know how to link your non-AMP to your AMP pages.




回答2:


Yes, this is what has been happening so far for most of the AMP pages, but this is not a strictly requirement. There are some websites, like https://ampbyexample.com/ which do not have the equivalent not AMP version.

Find some more context here



来源:https://stackoverflow.com/questions/40769648/do-i-have-to-maintain-two-versions-of-website-when-i-want-to-use-amped-version-o

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!