logoalt Hacker News

jraphtoday at 3:32 PM1 replyview on HN

Google AMP might have enforced stripped down HTML, but I think you were also supposed to embed their JS as well, probably making a page that was lightweight from the start heavier…


Replies

masklinntoday at 4:15 PM

amp wasn't just stripped down HTML either, it was a mix of restricted HTML and custom AMP components, the latter being necessary to load external resources (breaking standard browser preload scanners and requiring amp's js to load before that could happen). The banned HTML elements (https://amp.dev/documentation/guides-and-tutorials/websites/...) included img, picture, video, audio, iframe, all replaced with equivalent amp components.