WEB Signal 124
CSS minification yields negligible performance gains while obfuscating source code
Illustration only Photo by Helena Lopes on Unsplash
Testing demonstrates that minifying CSS provides minimal size and parsing benefits, making it an unnecessary build step that primarily obscures code readability.
Engineers adding CSS minification to build pipelines may be introducing complexity for negligible returns. The data indicates gzip or Brotli compression alone achieves nearly equivalent file sizes, and parsing differences are imperceptible at realistic stylesheet scales.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
Minifying Bootstrap before gzipping saves only 2 KB, reducing from 22 KB to 20 KB gzipped.
Parsing a 1,000-block stylesheet showed no measurable difference between minified and unminified versions.
The worst measured difference on a slow connection was 54ms for a smaller stylesheet, with larger stylesheets showing even less difference.
THE CLUSTER