Set and Enforce a Web Performance Budget
8 steps · about 3 h 25 min · Intermediate
- Define a first performance budget (guide, web.dev, 30 min)
Convert user experience goals into limits for timing, page weight and resource counts.
- Choose user-centred metrics (guide, web.dev, 25 min)
Use Core Web Vitals and supporting diagnostics without optimizing a single score blindly.
- Measure loading responsiveness (reference, web.dev, 25 min)
Understand the Largest Contentful Paint candidate and common causes of delay.
- Measure interaction responsiveness (reference, web.dev, 25 min)
Connect Interaction to Next Paint to long tasks, event handling and rendering work.
- Measure visual stability (reference, web.dev, 20 min)
Find unexpected layout shifts and reserve space for late-loading content.
- Interpret lab measurements (guide, Chrome for Developers, 25 min)
Read Lighthouse metric evidence and variability rather than treating the composite score as truth.
- Configure Lighthouse budgets (guide, Chrome for Developers, 25 min)
Add resource-count and resource-size limits to an automated Lighthouse run.
- Enforce the budget in CI (guide, web.dev, 30 min)
Run repeatable checks on representative pages and fail changes that exceed agreed thresholds.