Skip to content

Brotli compression in JavaScript #1467

Open

Description

@BearCooder

Proposal: Focus area

Websites can use Brotli to make files smaller before uploading or saving them. Firefox and Safari support this through the browser's compression API, but Chrome support is still missing in current compatibility data.

This means developers may need to download an extra code library to do the same job. There is a real developer request for handling compressed files in an offline cache.

Interop should make Brotli compression and decompression work across browsers and check that files are read and written correctly. Existing tests are a starting point, but need review before scoring.

The feature is already in the standard, and tests already exist. The tests still need checking, especially to make sure they can catch incorrect output.

Specification | Tests

Activity

  1. github-actions commented on Sep 25, 2026

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
    If this doesn't accurately correspond to your proposal, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

    Feature Compression streams

    • ID: compression-streams
    • Name: Compression streams
    • Description: The CompressionStream and DecompressionStream APIs compress and decompress data using the gzip or deflate formats.
    • Baseline status: Widely Available
    • Docs: Compression Streams API
    • Chrome use counter: chromestatus.com (~27.042% of page loads)
    • WPT tests: wpt.fyi results
    • More information: See the web-features explorer
  2. nairnandu commented on Sep 25, 2026

    @nairnandu
    Contributor

    Adding the focus-area-proposal label since this issue was created during the submission window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions