3 ms·
The whole of jQuery minified is 30kb. Why you would ever need 50kb for a single AMP page is beyond me.
by ehsankia 8y ago
The whole of jQuery minified is 30kb. Why you would ever need 50kb for a single AMP page is beyond me.
- ars 8y agoIt's mostly just long class names and things like that. If you minified the css along with the html you could get it significantly smaller. Also using individual css properties instead of combining them using the shorthand syntax, I assume any minifier would do that as well. Of course it's probably really hard to do because some class names are en/dis-abled in javascript and the names have to stay.
- dmitriid 8y agoThere are no AMP pages that weigh less than 1MB. However, since Google aggressively preloads most of that data while you search, it gives you the illusion of AMP pages being lightweight. Non-AMP pages? Oh, Google will happily penalize them even if they perform better.