3 ms·
I've read quite a lot about AMP, but I still don't really understand for what technical reason a new markup language (AMP HTML) and an additional javascript lib
by landave 9y ago
I've read quite a lot about AMP, but I still don't really understand for what technical reason a new markup language (AMP HTML) and an additional javascript library is required to achieve the (claimed) effect.
More specifically: Is there any evidence that AMP is able to provide a better result (at least in terms of performance) than just using a small subset of standard HTML, a little bit of CSS, getting rid of any javascript, and ensuring that the total page size is less than 100KB? If yes, I would be interested in the technical reasons.
- niutech 9y agoAMP JS library enables lazy loading of images/videos, so if you have a page with tens of them, you will notice the difference. > getting rid of any javascript Try to find a popular website without JS. Even HN uses it, so this is a moot point.
- SXX 9y agoHN is fully functional without javascript.
- acdha 9y ago> Try to find a popular website without JS. Even HN uses it, so this is a moot point. There's a big difference between not using JavaScript at all and doing it correctly with progressive enhancement. Any site which doesn't depend on a ton of JavaScript to render and uses lazy-loading where appropriate will see the same benefits and will be significantly more robust as well.