climateaction-tech / branch-theme

The theme used in the branch magazine by climateAction.tech
13 stars 2 forks source link

Fix problem with high-res images loading despite carbon intensity settings #37

Closed jacklenox closed 1 year ago

jacklenox commented 1 year ago

As discussed on Zulip, I discovered a somewhat alarming/frustrating problem whereby regardless of current carbon intensity, the Branch website seems to at least try to load the high-resolution version of the first image on any given page.

I know the following numbers aren’t especially worrying, but they’re only so low due to me recently swapping out the PNG cover for a JPG. Before that we were seeing the same issue, but with up to several MB of data.

Below is the amount of compressed data for each of the carbon intensities, for the current Branch homepage (uncached) :

As you can see, this causes a peculiar problem where the “moderate” intensity version of the site actually incurs more data download the “low”, while the “high” is the same as the “low”.