The problem
Websites deliver the same heavy experience whatever the visitor's electricity grid is doing at that moment.
The fix you can use today
- Check the carbon intensity of the visitor's region at request time.
- When it is high, switch to a lighter version: fewer or smaller images, no autoplay, fewer animations.
- Keep content and function the same; change only the extras.
The Green Web Foundation suggests websites that get lighter when the grid is dirtier. GreenCode keeps advice like this in mind in its work.
Tools that help
- Grid-aware websites toolkit (Green Web Foundation): an open-source library, design patterns and plugins for adapting a site to the visitor's grid carbon intensity
- CO2.js (Green Web Foundation): an open-source library that turns bytes transferred into an estimate of CO2, using the Sustainable Web Design model
How GreenCode helps
GreenCode helps tackle this by showing, in the footer of every page on greencode.ai, how much data the view transferred and an estimate of its carbon, worked out with CO2.js from what the page actually loaded. More on this.
Tags
#carbon-aware#web-performance#ux
Sources
All GreenCode Tech Tips