Interactive tool

Set a performance budget before the build gets away from you

Choose a network and how fast you want the page to load, and the tool works out how many kilobytes the page can weigh. Three sliders then split that between JavaScript, images, and CSS with fonts.

FreeCost
No sign-upAccess
In your browserRuns
How-To Guide

Turning a load time into a page weight budget

The tool turns a target load time and a network speed into a page weight in kilobytes. Work through it once and you come out with numbers you can actually hand to a team, plus a sense of where the calculator's estimate and a real device will part company.

Level: Intermediate
Best for: Front-end developers & UX designers
Performance Budget Calculator showing page weight and request limits by asset type
  1. Set your target and network

    Pick one of the three networks and set the load time you want, from half a second to five seconds.

  2. Read the weight limit

    See the page weight that load time allows, after 15% is set aside for the network's own overhead.

  3. Turn the numbers into a working budget

    Move the three sliders to share the budget between JavaScript, images, and CSS with fonts. Compare each figure with what your pages weigh now.

Performance Budget Calculator

Work backwards from a target load time to a page-weight budget, then split that budget across JavaScript, images and CSS with fonts. Pick a network, set your target, and adjust the three allocation sliders.

What is a performance budget? It is a byte ceiling you set in advance for a page, worked out from how long it should take to load on a given network, so that design and engineering decisions have a concrete number to check against instead of a vague sense of "too slow".

Formula: Time = Latency + Size ÷ Bandwidth. Rearranged: Size = (Time − Latency) × Bandwidth.

We then reserve roughly 15% for HTTP and TCP protocol overhead, so the usable budget shown below is 0.85 × that raw size.

Network conditions
Target load time
Allocate your budget

These three sliders do not need to add up to 100. Whatever you set, the actual split uses each slider's normalised share of the total.

Slider: 50% Normalised share: —
Slider: 35% Normalised share: —
Slider: 15% Normalised share: —

Results

Bars below show each category's KB budget as a share of the largest total budget obtainable (fastest network, longest target time), so they move with how generous your actual budget is — not just with the slider split, which is already shown as the normalised share above.

JavaScript0 KB
Images0 KB
CSS and fonts0 KB

Teaching note: a kilobyte of JavaScript costs more CPU time than a kilobyte of images, because it must be parsed, compiled and executed rather than just decoded. Keep JavaScript budgets tight even when the total budget looks generous.

Free Tools

Set a performance budget, then hold the build to it

The calculator turns a load time into a weight limit for JavaScript, images, and CSS with fonts. It suits anyone shipping to production, from a solo front-end developer to a team telling a client why a hero video needs to go.

No account needed, works on any device, free to use