Skip to main content

How we reduced CSS size and improved performance across GOV.UK

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

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.