3 ms·
I looked at a CNN "lite" article, and it includes 560KB of stuff (lots and lots of CSS declarations) in addition to the actual 11KB of article content.
by Dwedit 10mo ago
I looked at a CNN "lite" article, and it includes 560KB of stuff (lots and lots of CSS declarations) in addition to the actual 11KB of article content.
- zamadatix 10mo agoWhile still wasteful, CSS is one of those things you can do astronomically wrong before it starts being noticeable. Case in point here: inlining 560 kb of CSS with the page and just sending it with the entire HTML file each time is only ~61 kb of actual network transfer to load the article (due to brotli encoding).
- sva_ 10mo agoFor me in Firefox it only loads the article's HTML (50-70kb) and the favicon (7kb). Are you sure it isn't some addon you have?
- pandemic_region 10mo agoIt could be the cookie banner appearing.
- IanCal 10mo agoIt is, the content loads first, then the js for the cookie banner, then the favicon. If the js fails to load (I blocked the request as a test) the page loads just fine, it isn't blocked by that.
- reddalo 10mo agoI bet you're using uBlock Origin
- zamadatix 10mo agoThe articles HTML is ~60 kb compressed and ~10x that uncompressed, which accounts for both apparent sizes.
- iberator 10mo agoThe point is that it would still work if you block JS, CSS and graphics. Check it out in lynx for example
- atoav 10mo agoEver tried a TUI browser like lynx?