3 ms·
Probably includes images, although Universal apps tend to end up with a bunch of JSON embedded in the page, quasi-unique BEM style classes on everything you mi
by ry_ry 9y ago
Probably includes images, although Universal apps tend to end up with a bunch of JSON embedded in the page, quasi-unique BEM style classes on everything you might conceivably want to style will bulk out the html more than strictly necessary too, Babel makes some pretty damn ugly ES5 in certain circumstances, and poorly nested SASS produces some travesties, so it might just be a cumulative effect.
In truth, I'm not really sure what constitutes an average webpage, or even if the quoted number is after gzipped assets are unpacked by the client.
Would be interested to see where that number comes from though.
- shakna 9y agoRonan Cronin is the original source [0]. Lots of news outlets picked up the story at the time. The data comes from httparchive, you can grab a breakdown here. [1] Videos and JPGs are the worst offenders, but PNG and JS nearly tie for third in page weight. Though I think it isn't measuring gzip, but raw bytes, which changes it up a little. [0] https://mobiforge.com/research-analysis/the-web-is-doom https://mobiforge.com/research-analysis/the-web-is-doom [1] http://www.httparchive.org/interesting.php?a=All&l=Apr%201%202016 http://www.httparchive.org/interesting.php?a=All&l=Apr%201%2...
- mhink 9y ago> quasi-unique BEM style classes on everything you might conceivably want to style will bulk out the html more than strictly necessary too Slightly off-topic here, but it's my sincere hope is that (of all things) CSS Grid Layout will drastically alleviate HTML bulk. I've been astounded by how much using it has simplified my markup and reduced complexity in my CSS (since you can accomplish complex layouts without intermediary containers).