How we reduced CSS size and improved performance across GOV.UK
Posted by:
Jon Kirwan, Front end developer, GDS and Martin Jones, Front end developer, GDS, Posted on:
-
Categories:
Posts for Tech Specialists
![A laptop screen displays SpeedCurve metrics, featuring a graph that shows a decrease in CSS size from 42 kB to 25 kB after code changes to serve individual stylesheets](https://gds.blog.gov.uk/wp-content/uploads/sites/60/2023/12/Software-Engineering-Blog-post-620x434.jpg)
We recently reduced CSS size and improved performance across GOV.UK pages by
moving away from bundling all CSS into a single stylesheet served to all pages to serving smaller stylesheets containing only the necessary styles for each page.