Grade 'F' all round for British newspaper homepages on YSlow
Last week the Yahoo! Developers Network released a Firefox add-on called YSlow. It combines with the fantastic Firebug add-on to allow you to assess a web page against Yahoo!'s 13 criteria for delivering a really fast scalable web service.
I thought it might be interesting to benchmark British newspaper homepages against the YSlow performance metrics, to see how well they performed.
Some of the technical solutions that Yahoo! recommend require significant investment in infrastructure.
I suspect most newspaper editors in the UK would be more likely to think that a CDN was some type of new disc format they can give away free at the weekend to artificially boost their circulation, rather than understanding the benefits of a Content Distribution Network.
As it turned out, the results I got when I tested the pages using YSlow weren't all that great - all 8 newspaper homepages I looked at scored an 'F' grade.
Newspaper sites in the UK fall foul of the Yahoo! suggestions in a number of ways.
One prominent problem was the number of different domain names that had to be resolved when rendering a page. It seems that, thanks to using a diverse range of advertising, the majority of British newspaper homepages serve their content and advertising from a plethora of fully-specified locations. This requires more frequent DNS look-ups for the ISP delivering the pages, and impairs performance.
At the time of testing, for example, The Mirror was serving content on their homepage from 11 different fully-qualified domains:
Yahoo! suggest some optimisation techniques, like including all stylesheet links within the <HEAD> of the HTML, and putting external links to scripts at the bottom of the page. Quite a few newspaper website homepage featured code contrary to these suggestions.
The lowest rated British newspaper homepage that I checked with YSlow was The Sun's. The principle fault here was the sheer size of the download footprint of The Sun's homepage.
|Pos.||Newspaper||YSlow grade||YSlow score||Page footprint|
Newspapers online should be aware of two key performance metrics with serving their websites, which either impacts on the cost of serving the site, or on the potential reach of the site.
One is the amount of unnecessary bandwidth they are wasting, and paying for. If caching is enabled properly on a site, the page footprint can be drastically reduced for a second or subsequent download by the same user.
The Times front page, for example, clocks in with a footprint of 335k on initial download. With caching enabled, this can be greatly reduced, as the regular The Times screen furniture, CSS and scripts don't need to be downloaded again . Add that up for repeat visitors over the course of the year, and you will be talking about big cost savings.
Another issue the papers should be aware of is the impact on download speeds of these heavy pages.
On a big fat corporate or broadband connection, these pages load pretty instantaneously.
However, more than a third of the UK is still on only on dial-up access speeds. The Sun's 725.8k homepage footprint can take up to an astonishing two minutes to download every single element on a 56.6 Kbps connection.
So, according to YSlow anyway, it is pretty much a verdict of "could try harder" all round for British newspaper websites.