Skip to content
Performance & Accessibility

How to Get Performance Budgets Right

Agreed limits on page weight, request count or timing metrics, enforced automatically so they cannot be quietly exceeded.

MediaScaleUp Editorial Team 2 min read 15 views
How to Get Performance Budgets Right

What is at stake

Performance degrades by accumulation rather than by one decision, and a budget is the only mechanism that catches accumulation.

The playbook

  1. Set budgets per template rather than site-wide
  2. Enforce in continuous integration so exceeding one is visible immediately
  3. Include third-party resources in the budget
  4. Review budgets periodically as the site changes
  5. Make exceeding a budget a decision rather than an accident

Where it goes wrong

Avoid:

  • Budgets that exist as a document but are never enforced
  • Excluding third parties from the budget
  • One budget across very different templates
  • Budgets set so loosely they never trigger
What to do and what to avoid with performance budgets, side by side
Good practice against the usual mistakes, from the sources listed below.

The numbers behind it

Published figures for Performance Budgets
MeasureFigure
Budget typesresource size, request count, or timing metrics
Enforcementin continuous integration, failing the build
Baselineset from current performance and target
Segmentationbudgets differ per template
Third partiesmust be inside the budget, not excluded from it

Getting outside help

When to hand it over: Bring in help when performance regresses repeatedly, when a team needs budgets defining, or when third-party additions are outside anyone's control.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Performance & Accessibility work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

MediaScaleUp Editorial Team

Articles here are researched, written and checked by the MediaScaleUp studio team before they are published, and dated when they are reviewed.

Keep reading

More in Performance & Accessibility