Using amp script in non-amp page

前端 未结 2 901
攒了一身酷
攒了一身酷 2021-01-25 00:03

There are side effects using script amp in standard html5 pages?

My idea is to use amp-iframe to show some related content, also in web pages and not only in amp pages.<

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-25 00:53

    I haven't seen side effects yet of a nonamp/amp hybrid page. I'm currently using https://cdn.ampproject.org/v0.js for img control (ex: lazy load) on a non amp page.

    I'll guess this is not the type of bad coding that Google will result in a rank penalty.

    My nonamp page has:

    • Link tag to refer to the real amp page.
    • Google Chrome detects it's nonamp page and suggests the amp page version.
    • No boilerplate.
    • Used nonamp analytics.
    • Did not use thunderbolt or amp in html tag.

    Images didn't show up on Blu windows 8 phone. Suspect amp script at fault. Images do show up on Android smartphone.

提交回复
热议问题