Skip to content

Uncompressed assets #9

Closed

Description

@wildfiremedia

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)

Activity

  1. self-assigned this
    on Feb 9, 2026
  2. added theissue type on Feb 9, 2026
  3. nc9 commented on Feb 10, 2026

    @nc9
    Contributor

    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

  4. wildfiremedia commented on Feb 10, 2026

    @wildfiremedia
    Author

    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.

  5. added
    enhancement
    on Jun 9, 2026
  6. added
    P3
    rules
    size: S
    on Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3enhancementrulessize: S

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions