Hacker News new | ask | show | jobs
by jraph 118 days ago
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…
1 comments

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.