Re:The Middle East is running out of water, and parts are be...
by Jtsummers on Sunday August 22, 2021 @11:39AM
(#28266334)
IIRC, this site was put together, in particular, for low-bandwidth users (like mobile phone users back in the feature phone day) where every byte cost. CSS would be an unnecessary and potentially expensive addition for those users.
[ Parent
| on HN ]
Re:The Middle East is running out of water, and parts are be...
by tpmx on Sunday August 22, 2021 @11:52AM
(#28266453)
It's not optimized to that level. There's 1.1k of inline tracking javascript. And a reference to an external stylesheet for the styling, along with a bunch of wastefully long hex identifiers.
Re:The Middle East is running out of water, and parts are be...
by primeradical on Sunday August 22, 2021 @11:54AM
(#28266481)
Took a look at the dev console, there are 2 tracking scripts, segment and CNN specific one. Those take up the majority of bandwidth. There's also a separate CSS style sheet. The main DOM and the stylesheet are <10% of the total bytes transferred. The favicon is the same byte size as the entire DOM.
Don't think there is necessarily a consideration of byte cost, given the size of the tracking scripts. A few lines to make this manageable on wide monitors aren't prohibitive for those users.
Re:The Middle East is running out of water, and parts are be...
by Jtsummers on Sunday August 22, 2021 @11:57AM
(#28266506)
Ouch, I'm surprised they added those. Definitely defeats the original purpose of these low-bandwidth sites.
Re:The Middle East is running out of water, and parts are be...
by tpmx on Sunday August 22, 2021 @01:36PM
(#28267604)
It doesn't - it's still pretty compact. Would still be pretty compact after adding ~30 bytes for making it work well with large screens.