The CSS File Size and Count Report for Premier League sites
Author: Silvestar Bistrović
Date: 2021-02-17
Author: Silvestar Bistrović
Date: 2021-02-17
In this report, we are going to focus on the size of CSS. The aim of the report is to understand how much CSS code is needed to build a site.
Sites audited in this report:
Note that we included all sites of the Premier League plus the Premier League official site.
To generate this report, we used the following tools:
Using these tools, we extracted information about UI frameworks and the size of External CSS, Style tag CSS, and Inline CSS, where:
External CSS refers to CSS code that comes from external CSS files,
Style Tag CSS refers to CSS code that comes from the <style>
tags, and
Inline CSS refers to CSS code that comes from the inline style
attributes.
Since we stumbled upon some errors while extracting the CSS code from these sites, like repetitive CSS files or <style>
tags, we removed it from the report. The data collected might slightly differ from the actual data, but it still close enough to get the “big picture” about CSS sizes.
To make the text more readable, the terms “site” and “homepage” refer to the same thing: the site’s homepage.
⚠️ Any errors in the report that might be caused by invalid software are not deliberate and should be considered as such.
Site with the largest External CSS size | Premier League site | 2.47 MB |
---|---|---|
Sites with no External CSS | Burnley FC | |
Average size of External CSS site | 616.28 KB | |
Site with the largest Style tag CSS size | Chelsea FC | 914.32 KB |
Site with the smallest Style tag CSS | Everton FC | 46 B |
Average size of Style tag CSS site | 118.26 KB | |
Site with the largest Inline CSS size | Aston Villa FC | 7.11 KB |
Site with the smallest Inline CSS | Everton FC | 99 B |
Average size of Inline CSS site | 2.54 KB |
An average homepage of the Premier League site loads ~737KB of CSS code. Around ~83.61% of the CSS code comes from external CSS files, around ~16,04% comes from the <style>
tags, and only ~0.34% comes from the inline style
attributes. It is not surprising that most of the CSS code comes from the external CSS files since that is the most recommended way to do it. With the recent Google updates about Web Vitals, like Cumulative Layout Shifts and Largest Contentful Paint, and the awareness of the importance of the “above the fold” code, it is also not surprising to see the percentage of the Style Tag CSS. The least popular, as it should be, is the Inline CSS code.
According to Web Almanac, around 10% of all processed sites load more than 240KB of CSS code. According to this report, all Premier League sites but two, Burnley’s and Wolverhampton’s, load more than 240KB of CSS code overall.
While JavaScript far surpasses CSS in its share of page weight, CSS has certainly grown in size over the years, with the median desktop page loading 62 KB of CSS code, and one in ten pages loading more than 240 KB of CSS code.
This graph is interactive. You could hover or tap regions to see extra information and enable or disable specific metric by clicking on a label below graph.
Burnley’s and Chelsea’s sites do not load any external CSS file. The Premier League’s site loads more than 2MB of External CSS. Four other sites load more than 1MB of External CSS.
Everton’s, Leicester’s, and Newcastle’s sites don’t use the <style>
tag. Chelsea’s site loads more than 900KB, and three other sites load more than 200KB.
Regarding the inline style
attribute, all sites load less than 8KB of CSS code. Six sites load less than 1KB, and the lowest CSS code that comes from the inline style
attribute is loaded on Everton’s site. Three sites load more than 6KB, where Aston Villa’s site loads the most, more than 7KB.
According to Wappalyzer, a tool for identifying technologies on websites, only three sites use UI frameworks: Leeds’s and West Ham’s sites use Bootstrap and WBA’s site uses the ZURB Foundation framework.
Site | UI Framework |
---|---|
Leeds United | Bootstrap |
West Bromwich Albion | ZURB Foundation |
West Ham United FC | Bootstrap |
Let us compare the average size of the Premier League site to UI frameworks sizes. The full version of Materialize CSS is around ~142KB, Bootstrap is around ~160KB, Foundation is around 168KB, and Tachyons is around ~205KB. Premier League sites load CSS code that is more than five times bigger than the entire Materialize CSS, more than 4.5 times bigger than Bootstrap, almost 4.5 times bigger than Foundation, and more than 3.5 times bigger than Tachyons.
Site with the largest number of External CSS files | West Ham United FC | 28 |
---|---|---|
Sites with no External CSS | Burnley FC | |
Average number of External CSS files | 4 | |
Site with the largest number of Style tag CSS | Sheffield United FC | 100 |
Site with the smallest number of Style tag CSS | Newcastle United | 1 |
Average number of Style tag CSS | 19 | |
Site with the largest number of Inline CSS occurrences | Aston Villa FC | 62 |
Site with the smallest number of Inline CSS occurrences | Leicester City | 2 |
Average number of Inline CSS occurrences | 23 |
The Premier League site’s average homepage loads 4 External CSS files, 19 <style>
tags, and 23 style
attributes.
According to Web Almanac, 7% of all pages use a single External CSS file, while the average is 6.
All these kilobytes of code are typically distributed across multiple files and
<style>
elements; only about 7% of pages concentrate all their CSS code in one remote stylesheet, as we are often taught to do. In fact, the median page contains 3<style>
elements and 6 remote stylesheets, with 10% of them carrying over 14<style>
elements and over 20 remote CSS files! While this is suboptimal on desktop, it really kills performance on mobile, where round-trip latency is more important than raw download speed.
This graph is interactive. You could hover or tap regions to see extra information and enable or disable specific metric by clicking on a label below graph.
The only site that does not load any External CSS file is Burnley’s site. Six sites load only a single External CSS file, including Brighton’s, Chelsea’s, Everton’s, Manchester’s, Newcastle’s, and Tottenham’s site. On the other hand, West Ham’s site loads 28 External CSS files, while two other sites load more than 10 External CSS files, Aston Villa’s and Liverpool’s sites.
All sites use at least one <style>
tag. Sheffield’s and Aston Villa’s sites use more than 90 <style>
tags, while Arsenal’s, Leicester’s, and Newcastle’s sites load only one <style>
tag.
All sites use inline style
attribute. Everton’s and Leicester’s sites use only a couple of style
attributes, while Aston Villa’s, Fulham’s, and Sheffield’s sites use more than 50 style
attributes.
Top three Premier League sites in terms of CSS file size are:
Burnley,
Wolves, and
Fulham.
On the other side, the bottom three sites in terms of CSS file size are:
Premier League
Southampton, and
Manchester United.
An average homepage of the Premier League site is bloated with CSS. If we think of the best practices in the web industry, we cannot see many sites use the best practices. Only a few sites might be rated as optimal or performant in terms of CSS code. The architecture and the structure of these sites might not be straightforward, but that does not mean that CSS should be ignored, or worse, disrespected.
It is interesting to see different approaches to loading the CSS, where some sites use only Style Tag CSS or External CSS, while others use many <style>
tags and external CSS files. Although the loading technique might depend on the technology used to build these sites, CSS should not be abused or neglected.
Combining all CSS files in a single one, moving code from <style>
tags and style
attributes might seem daunting tasks, but it could be done. All it is takes is some respect and love for CSS.
#RespectCSS
Silvestar is a frontend UI developer who enjoys creating pixel-perfect, responsive, and modern websites. Making faster, lighter, and more secure sites using WordPress or Static Page Generators is his speciality. When he is not coding, Silvestar likes to write articles on his blog.
We are working hard to publish new reports and blog posts as soon as possible.
If you would like to get recent reports in your inbox, subscribe here!