Performance and accessibility 4 min read Updated
Performance budgets you can enforce in review
In short
A performance budget is a limit that a page must stay within, checked before changes ship rather than after visitors complain.
A performance budget is a limit that a team agrees before work starts, and it is checked every time the page changes, so a slow change is caught before it reaches visitors. Choose the metrics first, then set thresholds for each type of page.
What a budget is for
web.dev defines a performance budget as a set of limits imposed on metrics that affect site performance. A budget gives a team a reference point for decisions about design, technology and features. Its value is that it turns a debate into a check: a new feature either fits within the limits, or something has to be removed or optimised first. Why speed belongs in design decisions is covered in speed as part of design.
Choose the metrics
The article groups metrics into three types and recommends combining them:
| Type | Examples | What it tells you |
|---|---|---|
| Quantity-based | Asset sizes and request counts | Easy to check in a build and to explain to others |
| Milestone timings | First Contentful Paint and Time to Interactive | When the page becomes usable for the reader |
| Rule-based scores | Lighthouse or WebPageTest scores | A summary of many checks, but harder to trace to one change |
web.dev suggests starting with asset sizes and tracking milestone timings as early as possible. For user-centred measurement, the three Core Web Vitals are a natural second layer. LCP should occur within 2.5 seconds, INP should be 200 milliseconds or less, and CLS should stay at 0.1 or less. A page passes when it meets these targets at the 75th percentile, so one good visit does not settle the question. When LCP is the failing metric, the usual causes are covered in fixing Largest Contentful Paint.
Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea
Set thresholds for each page type
A single number for the whole site hides the differences between pages. web.dev recommends a budget for each type of page, because the content varies. The article’s examples give a search page an image limit and a blog a Lighthouse score target, since the content of each differs.
As a starting point, the article suggests a Time to Interactive under 5 seconds and critical-path resources under 170 KB, compressed and minified. It notes that these numbers are calculated on real-world baseline devices and a 3G network. Treat them as a starting point only. Measure your own pages first, and set each limit from that baseline.
Set the baseline before you set the limit. Measure each page type as it is today, then choose a limit slightly better than that figure, so that the budget tightens the site rather than merely recording its current state.
Enforce the budget in the build and in review
A budget that lives in a document is easy to ignore. The article names three open-source tools that can help add budgets to a build process: webpack’s performance features, bundlesize and Lighthouse CI. It does not explain how to configure them, so read each tool’s own documentation before adopting one. Where no tool fits, the same check can be done by hand during review.
When something goes over a defined threshold, web.dev lists three options: optimise the asset, remove it, or decline to add it. Make that choice visible in review, so that a change which breaks a budget is discussed before it is merged rather than after release.
The definitions, examples and thresholds here come from the two cited web.dev articles. Google may revise them, so check the current pages before you set targets.
Keep measuring after launch
The article is clear that measurement has to continue after the initial launch. Real-user data shows how a change affects the results that matter to the business, which lab tests cannot show on their own. The guide to field data from real visitors explains how to read that data.
- Choose two or three metrics for each page type, using at least one quantity-based measure where possible.
- Measure each page type as it is today and write the baseline down.
- Set a limit for each metric and keep it next to the code it protects.
- Add the checks to the build, or to a review step where the build cannot run them.
- When a change breaks a limit, optimise it, remove it or decline it, and record the decision.
- Review the limits on a regular schedule and check that the field data still agrees with them.
Common questions
- Which metrics should a budget use?
- Use a combination. The web.dev article recommends mixing quantity-based measures, such as asset sizes, with user-centred timings. A team new to budgets can start with asset sizes and track milestone timings early.
- Are the starting numbers safe to copy?
- Treat them as a starting point only. web.dev calculates them on real-world baseline devices and a 3G network, so they may not match your visitors. Measure your own pages first.
- What should happen when a page breaks its budget?
- web.dev lists three options: optimise the asset, remove it, or decline to add it. The decision should be visible in review, not taken after release.
Sources
- Performance budgets 101, web.dev. Accessed 24 November 2026
- Core Web Vitals, web.dev. Accessed 24 November 2026
Further reading
-
Field data from real visitors
Field data shows what real visitors experience at the 75th percentile, and it should set priorities before any lab test starts.
-
The real cost of third-party scripts
A third-party script costs your visitors time even when it is small, so load it with care and remove what adds no clear value.
-
How HTTP caching decides what is reused
Caching is safe to use when each response carries an explicit Cache-Control header that matches how often its content changes.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea