This is an important matter. Thank you for bringing this up!
For my wordsandbuttons.online , I have one rule - all the pages, no matter how interactive-rich, should take less than 64KB each. To get there, I write all my HTML, JS and CSS by hand. Should confess, I wasn't thinking much of the environment, it was mostly about user experience. But I'm happy that it pays of in this way too.
My average page produces 0.02 g of CO2, which sums up to a 1% of sumo wrestler over the year (or a full-sized sumo wrestler over a century), and it can be absorbed by only one tree (what a coincidence, I have my tree planted just last month).
So, who wants to turn it into a competition?