3 ms·
Everything you need to know about AMP is in one very specific section of the spec: "AMP HTML documents MUST...contain a <script async src="https://cdn.ampproje
by tyingq 5y ago
Everything you need to know about AMP is in one very specific section of the spec:
"AMP HTML documents MUST...contain a <script async src="https://cdn.ampproject.org/v0.js"></script> https://cdn.ampproject.org/v0.js"></script> tag inside their head tag" [1]
Meaning, "Your content must load and run some Google controlled javascript, that does who-knows-what to your content and end users".
In the past, that's included injecting a big header that pushes your content down, hijacking swipe events on your page, an [X] button that looked like it would delete the AMP banner header, but instead navigated away from your page back to google, etc.
[1] https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/ https://amp.dev/documentation/guides-and-tutorials/learn/spe...
- hackerfromthefu 5y agoEvil
- bduerst 5y agoThe Amp javascript can be self-hosted [1] away from Amp's servers, there's even a framework demonstrating how to do it [2]. The only difference is that it doesn't pass Amp validator, which is necessary for the Bing search result icon. Developers have requested the feature for the Amp validator to include self hosting but it hasn't been added yet (or have any plans to AFAIK). [1] https://gist.github.com/mdmower/b56e94f0dc36beafb825b0c5e31fceef https://gist.github.com/mdmower/b56e94f0dc36beafb825b0c5e31f... [2] https://github.com/mdmower/amp-self-host-demo https://github.com/mdmower/amp-self-host-demo
- tyingq 5y agoInteresting, though I am citing the AMP spec, and it does say MUST. I'm curious if Google would put a self-hosted AMP page, for example, in their carousel. I think it probably can't.
- bduerst 5y agoIt's been exactly a year since Google announced they are no longer prioritizing AMP content in the carousel, or as SEO in general, so they probably would put self-hosted AMP there (if it passed the SEO bar): >Besides algorithm changes, there will be several user-facing changes. For starters, the Top Stories carousel in Search will no longer be limited to AMP content. The Google News website and mobile apps will similarly surface more non-AMP content. Lastly, the AMP lightning bolt icon will no longer be used to badge eligible content: https://9to5google.com/2021/04/19/google-search-page-experience/ https://9to5google.com/2021/04/19/google-search-page-experie...
- nomilk 5y agoWhat was the purpose of the header? Seems an enormous, superfluous 'back' button. https://i.imgur.com/5k2j8F8.png https://i.imgur.com/5k2j8F8.png
- tyingq 5y agoMore google page views, I guess?