You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is rare websites that will serve uncompressed CSS, JS, and JSON for some reasons for corporate and marketing sites e.g. agency could forgo that.
perf/css-file-size CSS File Size Too Large (warning)
⚠ css-file-size: 2 CSS file(s) exceed 100.0 KB
Squirrel scan could detect if the assets exceed 100KB and are uncompressed, perhaps, could list a few file name.
Triage (maintainer): accepted. perf/compression today only checks the HTML document's response headers; CSS/JS/JSON asset responses are never checked, and perf/css-file-size / perf/js-file-size ignore content-encoding entirely. Extend compression coverage to crawled asset responses.
Acceptance Criteria
a compressible text asset (CSS, JS, JSON, SVG, XML) served without content-encoding (gzip/br/zstd) above a size threshold is reported, naming the asset URL and its size
compressed assets, and assets under the threshold, are not reported
the existing HTML-document check in perf/compression keeps its current behaviour
test coverage includes at least one uncompressed asset (reported) and one compressed asset (not reported)
There is rare websites that will serve uncompressed CSS, JS, and JSON
this happens if you audit against localhost in dev - some rules will have to apply to prod runs only, including this. There is an upcoming feature with environment handling where you define them (they're auto-detected by default) if you run out of a code repo. Will need to do this first and then disable rules like this in dev builds / envs
The site I tested is a live site, not localhost, I noticed one agency out of hundreds did not serve compressed assets for many of their clients' site. Worth a warning for a live site.
Activity
nc9 commentedon Feb 10, 2026
this happens if you audit against localhost in dev - some rules will have to apply to prod runs only, including this. There is an upcoming feature with environment handling where you define them (they're auto-detected by default) if you run out of a code repo. Will need to do this first and then disable rules like this in dev builds / envs
wildfiremedia commentedon Feb 10, 2026
The site I tested is a live site, not localhost, I noticed one agency out of hundreds did not serve compressed assets for many of their clients' site. Worth a warning for a live site.
style(cli): apply oxfmt to the #9 script-fetcher changes
fix(rules): an unconfirmable ranged 206 records unknown, not uncompre…
fix(rules): read content-encoding as a token list, not a single value #9
feat(rules): report uncompressed text assets over size threshold #9 (#…
docs: rule count 279 after the uncompressed-assets rule (#9) (#185)
fix(rules): an unconfirmed probe is unknown, never a confirmed absence (
fix(crawler): bound the crawl preamble with one phase budget (#194)