3 ms·
It sounds like you're on the right track: AMP is a subset of HTML with restrictions on what can be on the page. The key is, if a page meets those restrictions t
by Zikes 11y ago
It sounds like you're on the right track: AMP is a subset of HTML with restrictions on what can be on the page. The key is, if a page meets those restrictions then the page can be pre-fetched and pre-rendered to allow for an instantaneous display for the user. It is up to the browser to determine if a page is AMP-compliant (following the execution of JS of the AMP project itself, loaded with the page), and if it is not (because a publisher inserts non-compliant JS, for instance) then it will fail the pre-render and load as a typical page, negating the speed benefits that AMP purports.
AMP does support ads, with a built in amp-ad element[0] that works with most major ad networks. It also includes several other elements for handling dynamic JS-driven media, but it's put together so that the media is sandboxed via web components and the browser can easily determine the dimensions on the page that the components will take up.
[0] https://github.com/ampproject/amphtml/blob/master/builtins/amp-ad.md https://github.com/ampproject/amphtml/blob/master/builtins/a...
- insanebits 11y agoI agree with idea of the general idea of AMP. BUt this is simply wrong. What happens if I am an owner of "minor" ad network. It's essentially trying to prevent anyone entering ad bussiness in my oppinion. And what does it mean to the developer who has to create some custom interactive component because that's what management wants? I fully understand that it's counter measure against facebook and apple. But there should be better ways to improve websites performance not just removing years of web standards development. Google as a major search engine could influence faster web by giving it more influence on SERPS which would make publishers take a notice on how to make their sites faster. This is not reasonable to create yet another version of the website just to please google. Sorry for the rant, you can guess what I do for a living:)
- magicalist 11y ago> What happens if I am an owner of "minor" ad network. It's essentially trying to prevent anyone entering ad bussiness in my oppinion. I'd suggest reading the whole page :) You can load any ad as long as it can go in an iframe and is served over HTTPS