Skip to content

misc(build): generate subset of web-features data#17047

Merged
connorjclark merged 1 commit into
mainfrom
reduce-web-feat-data-size
Jun 3, 2026
Merged

misc(build): generate subset of web-features data#17047
connorjclark merged 1 commit into
mainfrom
reduce-web-feat-data-size

Conversation

@connorjclark

@connorjclark connorjclark commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

The web-features/data.json file is 5.1 MB, heavily inflating the bundle
size. This commit introduces a build script to extract only the baseline
statuses needed by the baseline audit, and groups them by tier ('high',
'low', 'limited') to further reduce their size on disk.

This shrinks the data dependency down to ~29 KB (post-minification) and
updates the baseline audit to consume the new compact format.

The lighthouse devtools bundle went from 6.5 MB to 2.5 MB.

ref #10476

@connorjclark connorjclark requested a review from a team as a code owner June 3, 2026 19:59
@connorjclark connorjclark requested review from paulirish and removed request for a team June 3, 2026 19:59
The web-features/data.json file is 5.1 MB, heavily inflating the bundle
size. This commit introduces a build script to extract only the baseline
statuses needed by the baseline audit, and groups them by tier ('high',
'low', 'limited') to further reduce their size on disk.

This shrinks the data dependency down to ~29 KB (post-minification) and
updates the baseline audit to consume the new compact format.

The lighthouse devtools bundle went from 6.5 MB to 2.5 MB.

ref #10476
@connorjclark connorjclark force-pushed the reduce-web-feat-data-size branch from f742830 to 39fe9e1 Compare June 3, 2026 19:59
@connorjclark connorjclark enabled auto-merge (squash) June 3, 2026 20:25
@connorjclark connorjclark disabled auto-merge June 3, 2026 20:26
@connorjclark connorjclark merged commit aef5a93 into main Jun 3, 2026
35 checks passed
@connorjclark connorjclark deleted the reduce-web-feat-data-size branch June 3, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant