DEV Community

BezPowell
BezPowell

Posted on • Updated on • Originally published at pinopticon.net

Carbon and pagespeed in newspaper websites

This is a piece I originally posted to my blog at the start of the year. Posting it up here as it may be of interest to some.


Preface

With many in the west currently self-isolating due to the ongoing COVID-19 pandemic, internet use is growing rapidly. A high-profile change recently has been many video streaming services reducing the bandwidth of the videos they offer in an attempt to relieve some of the increasing stress on the network. The internet (and video streaming services especially) have come under scrutiny for the amount of electricity that running the supporting infrastructure creates and the resultant environmental impact from the carbon emissions that this produces. Thankfully, though, it looks like that with the reduced emissions from travel it is possible this will lead to the first fall in global emissions since the 2008-09 financial crisis.

Watching videos, conference calls, and online gaming are all high bandwidth activities that consume a lot of energy; while working as a web developer, however, I frequently observed that even simple sites, when poorly built, can be very inefficient on bandwidth and the processing power of the devices used to view them. Unoptimised images, heavy use of tracking scripts, and multiple advertisements are all things that can turn even a basic, text-heavy site into a resource hog that has the potential to be quite expensive to view for those on metered connections (such as when downloading a page over 4g).

In their latest newsletter (at the time of writing) Smashing Magazine published a link to an online tool that can estimate the carbon emissions of someone viewing a page from a website. Having experimented with the tool on my own site, and in light of the current strain on the internet, I decided it would be an interesting experiment to analyse the page load performance and carbon generated from viewing a common and seemingly simple form of site – newspaper websites.

Deciding which source of news to read has traditionally been a stylistic and ideological choice, but as we increasingly turn to the internet for information it has the potential to also become a financial and environmental one as well.

Methodology

I wanted to compare some popular sources of online news for the UK; unfortunately, there is little hard data on page hits for various news websites, so instead I decided to use a proxy measurement in the form of the circulation of the printed form of a newspaper. Wikipedia lists the newspapers in the UK with the highest circulation and I took the top 15 of these to compare – using their official websites for comparison.

All the websites were tested using a series of tools:

  • Google page speed insights – analyses how fast the page loads compared to other websites. Taking into account the size of the page, how fast the server(s) take to respond and how long the page takes to render etc. It then makes suggestions on how to improve this, such as optimising images and minifying javascript. Scores a website between 0 and 100, with 0 – 49 being considered slow, 50 - 89 average, and 90 – 100 fast.
  • Pingdom tools – similar to pagespeed insights, but with a greater focus on server configuration. Same numerical scoring system as pagespeed insights, in my personal experience it is harder to get a 90+ score here.
  • Website carbon calculator – determines the approximate amount of CO2 emitted for each pageview. Taking into account the page size, the energy type the server is running on (i.e. renewable or fossil fuel), and the amount of processing power required to display the page etc.

Each webpage was tested with all of these tools in the same 1 hour period on 2020-03-23 to make the test as fair as possible. While the figures for carbon emitted are likely not 100% accurate, the test was made as objective as possible by all the checks being fully automated. The only input required from myself was loading each tool and feeding it the url to each website’s homepage.

The Results

The results are detailed in the table below. I have included BBC News and this website for comparison purposes only. The total page size column is as reported via pingdom tools and the Cost to View calculated from this using the average mobile data tariff from 2019 (this is purely the cost to download the page on a mobile connection, it does not take into account any subscription charges or paywalls present on the website). Cells with a green background represent the best score out of the newspaper websites, and those with a red background the worst.

Fields marked NaN are where the tool was unable to get a result; from experience this is generally where the test has timed out before it can return a result and an indication of extremely low performance.

Title Circulation Pagespeed Insights (Mobile) Pagespeed Insights (Desktop) Pingdom Tools Website Carbon Calculator (g) Size (MB) Cost to View ($)
Metro 1426535 46 95 77 1.72 2.9 $0.0193
The Sun 1250634 5 24 63 2.51 5.1 $0.0340
Daily Mail 1169241 20 42 60 NaN 3.8 $0.0253
Evening Standard 798168 36 72 61 2.04 2.8 $0.0186
Daily Mirror 451466 20 70 66 NaN 2.2 $0.0147
The Times 368929 NaN Nan 62 3.04 5.8 $0.0386
Daily Express 296079 14 49 66 NaN 2.8 $0.0186
Daily Star 277237 24 65 67 NaN 3.2 $0.0213
i 217182 38 61 62 1.66 2.2 $0.0147
Financial Times 157982 21 32 67 1.00 1.7 $0.0113
The Guardian 132341 35 68 61 1.63 3.3 $0.0220
Daily Record 104343 28 84 66 NaN 2.1 $0.0140
City A.M. 85521 32 76 70 1.75 1.6 $0.0107
The Independent N/A 23 58 63 NaN 4.1 $0.0273
The Daily Telegraph N/A 37 71 64 NaN 2.9 $0.0193
BBC News N/A 84 100 82 0.51 2.2 $0.0147
Pinopticon.net N/A 99 100 98 0.14 0.17 $0.0011

Chart of relative Pagespeed Insights and Pingdom scores from table.
Chart of relative Carbon and page size scores from table.

As you can see from the results, there is a huge amount of variance between the websites tested. In terms of carbon output, the worst offender (The Times) emits over 3 times as much carbon as the best performing site (Financial Times) per pageview. Total page size has an even greater level of variance with the largest page (again The Times) over 3.5 times the size of the smallest (City A.M.) Pingdom tools and Pagespeed insights also display a wide level of variation with the best performing site (Metro) having much higher scores than the worst (The Sun for pagespeed and Daily Mail for Pingdom).

As is to be expected, websites with a higher page load speed also tended to have a lower total page size and carbon emissions, though this was not always the case. There are many factors that determine these metrics, and as an example a site could have a relatively low page size, but poorly optimized javascript that would bring down page performance. Generally speaking, however, from my experience optimisations made to a single metric will almost always improve the others.

The results become even more interesting when the scores are compared against the two comparison websites. None of the newspaper websites tested emit under a gram of carbon per page view and yet, the BBC manages to deliver what is presumably a similar amount of information with just over half a gram of carbon emitted; also with excellent page load speed.

Conclusion

While this is not intended to be an in-depth look at the performance of news websites it does hopefully show that the choice of news source can have a substantial environmental impact. All of the newspapers tested have circulations in the tens (if not hundreds) of thousands and if increasing numbers of those readers are going online for their daily updates the differences could add up to become quite substantial.

In addition to this it should also be apparent the poor state of performance optimisation present on the websites tested. All of the newspaper website tested on pagespeed insights have a score below 50 for mobile and only a single one is considered fast on desktop. Furthermore, none of them have a total page size below 1.5MB which especially on mobile networks can contribute to poor user experience.

The most positive environmental change here would be for readers of The Times to move to BBC News, but regardless of which newspaper you read, do consider changing what source you use to stay up to date – it could well make a difference to both the planet, and your patience.

Top comments (0)