Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I still can't get over the fact that AMP breaks the img tag and requires JavaScript.

My long-running browsers instances are bogged down by JavaScript (and I have NoScript on whitelist mode, with it only allowed where necessary!). Requiring it on any fast-page standard seems counterproductive.

And why, why would they break the img tag‽



AMP doesn't "break" the img tag. It's more optimal to use the amp-img tag for AMP pages, but if you use img instead it's not going to break your page.

>And why, why would they break the img tag‽

https://www.ampproject.org/docs/guides/amp_replacements


As far as I can tell the amp-img tag doesn't add anything that img doesn't already support. The page simply mentions some vague statement about needing to understand the page layout, but uses the same attributes as img.


Did you click the support first-viewport preloading link?


embrace, extend and extinguish




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: