News for hackers. Stuff that matters.
Re:Ship modern JavaScript to save 54000 metric tons of CO2 &... by YHwqFf on Monday December 14, 2020 @05:23AM (#25415401)
one could also just ship less javascript - the linked page requires 350(!)kb of javascript - for a site that could very well be a static one
Re:Ship modern JavaScript to save 54000 metric tons of CO2 &... by dassurma on Monday December 14, 2020 @10:36AM (#25418714)
To be clear: It doesn’t _require_ JS at all. The page _is_ static and works with JS disabled. It uses JS for YouTube, Login and the interactive widgets at the bottom.
Re:Ship modern JavaScript to save 54000 metric tons of CO2 &... by drydenwilliams on Monday December 14, 2020 @05:28AM (#25415429)
Very good point! Interestingly though that 350 KB is still smaller than the 441 KB average JavaScript for a site in 2020.
Re:Ship modern JavaScript to save 54000 metric tons of CO2 &... by YHwqFf on Monday December 14, 2020 @06:12AM (#25415727)
which is a pity for everyone calling themselves "web developers"
Re:Ship modern JavaScript to save 54000 metric tons of CO2 &... by drydenwilliams on Monday December 14, 2020 @06:38AM (#25415898)
I agree, think you might like this that I've been making: https://ecoping.earth/indexes/gb/digitalagencies
Re:Ship modern JavaScript to save 54000 metric tons of CO2 &... by developit on Monday December 14, 2020 @10:15AM (#25418456)
Nit: 212kb, the rest is a YouTube embed that I seem to recall is loaded lazily.