2 ms·
Less JavaScript bloat, I think. AMP is mostly static content. Plain HTML and one CSS file (read: one, not five, not ten CSS files) minus the JavaScript bloat w
by dheera 7y ago
Less JavaScript bloat, I think. AMP is mostly static content.
Plain HTML and one CSS file (read: one, not five, not ten CSS files) minus the JavaScript bloat would also load insanely fast. It doesn't have to be AMP.
Try the basic HTML verson of Gmail -- it loads about 5-10X faster than the AJAX version.
- ejcx 7y agoYou're correct. No js bloat. In order to load Js files it has to be in accordance with the AMP spec and they have a strict list of js you can load.
- untog 7y ago> Less JavaScript bloat, I think. AMP is mostly static content. That's actually completely untrue. Every AMP component is a web component and requires JavaScript in order to run at all. And many have their own .js file powering it. You literally can't use an <img> tag on an AMP page. You have to use <amp-img>, which has a JS dependency. OP is right, the primary reason AMP is fast is because Google is preloading the page in the background. AMP pages themselves aren't all that static, or really all that bandwidth efficient.
- manigandham 7y agoOr the site you're already on: HN.