Skip to content

Rule · Performance

Text resources are served uncompressed

perf/no-text-compressionwarnvoid perfupdated

Why it matters

HTML, CSS and JS compress 70-90% with brotli or gzip; uncompressed transfer multiplies download time.

How to fix it

Enable brotli (or zstd) at the CDN/reverse proxy for text/html, text/css, application/javascript, application/json and image/svg+xml.

void perf reports 25 rules in this category. Core Web Vitals and bytes: LCP, CLS, TBT, TTFB, JavaScript, CSS, fonts, images, caching and compression, measured as the median of several runs on a throttled mobile and a desktop profile.