Compressed length is the amount of data sent after compression, making it the relevant measure for network transfer and initial-load budgets. It differs from uncompressed size, which affects browser parsing and execution after delivery. section 6.2.2
Bundle transfer versus processing
A JavaScript bundle compressed to 200KB may expand to 700KB in the browser. The compressed value determines download time; the expanded value contributes to parsing and execution cost. section 6.2.2
Apply compressed length as a performance budget by:
- Measuring the gzip- or Brotli-compressed JavaScript sent to browsers. section 6.2.2
- Setting stricter limits when JavaScript dominates the critical path, especially for mobile users and JavaScript-heavy applications. section 6.2.2
Table 6.1 Russell’s performance budget baselines
|
Page type
|
Example
|
JavaScript share
|
Total budget (3s load)
|
|
JavaScript-heavy
|
SPAs, client-rendered apps
|
50%
|
1.2MB
|
|
JavaScript-light
|
Server-rendered sites
|
15%
|
2.0MB
|
Compare total budgets for JavaScript-heavy and JavaScript-light pages, including their JavaScript shares and three-second-load baselines. section 6.2.2
