Performance lab · educational approximation
Asset Weight Calculator
Enter the uncompressed size of each asset class on a page. The calculator estimates the compressed transfer size and a rough download time on a chosen connection profile. Every assumption is listed below the result. It does not measure any website.
Estimate
—KB transferred
—
- Uncompressed total—
- Text assets after compression—
- Rough download time—
- Of which connection set-up—
- JavaScript share of transfer
Download time ignores parsing, compiling, decoding and rendering, which for JavaScript and images are often larger than the download itself.
Assumptions
- Compression ratios. Brotli is assumed to reduce HTML, CSS and JavaScript to 22 percent of their uncompressed size; gzip to 28 percent. Real ratios vary with content from roughly 15 to 40 percent. Images and fonts are assumed already compressed and unchanged.
- Download time = three round-trip times for DNS, TCP and TLS set-up, plus transfer bytes divided by throughput. It assumes one warm connection and no bandwidth contention, which is optimistic, and no HTTP/3 zero-round-trip resumption, which is pessimistic.
- Connection profiles are illustrative values in the range used by common throttling presets, not measurements of any network.
- Not modelled: JavaScript parse and execute time, image decode, GPU texture upload, render-blocking order, caching on repeat visits, or anything a real browser does after bytes arrive.
Reading the result
The number to react to is usually the JavaScript share. Bytes of JavaScript cost more than bytes of anything else because they are parsed and compiled on the main thread after arrival, so a page whose transfer is half script will feel slower than the download time suggests. The second number is the set-up share on a slow connection: when three round trips cost more than a second, moving assets to a nearby CDN edge saves more than shrinking them. The asset optimization guide covers what to do about each class, and the CDN guide covers removing the download on repeat visits.
This tool does not fetch, measure or score any website. For real numbers, run Lighthouse or the DevTools Performance panel against the page, and read field data from the Chrome UX Report or your own monitoring.