News for hackers. Stuff that matters.
Re:The Middle East is running out of water, and parts are be... by tpmx on Sunday August 22, 2021 @11:26AM (#28266225)
It would do well with a tiny amount of additional CSS to make it work well on large screens, but I guess they don't want to make it too nice to use for that segment.
Re:The Middle East is running out of water, and parts are be... by primeradical on Sunday August 22, 2021 @11:41AM (#28266356)
Yeah just two adjustments makes it infinitely more readable on a 1080p monitor, body { max-width: 768px; margin: 0 auto; }
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.
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.
Re:The Middle East is running out of water, and parts are be... by enlyth on Sunday August 22, 2021 @11:50AM (#28266437)
The website already serves a 496 byte CSS file (359 minified, even less gzipped), addition of a max-width to make it readable on large screens wouldn't make a difference.