Continuous Website Performance Monitoring: Real User Data, Regression Detection and Performance Budgets
Why optimized sites decay, and the monitoring, budgets and ownership that stop it happening again.
In short
Every site gets slower unless somebody is watching. Not because anyone makes a bad decision, but because the ordinary work of running a website adds weight: a new app, a marketing tag, a bigger image, another section, a dependency update.
So a one-off optimisation project has a predictable arc. Six months of improvement, then a slow return to where it started, then someone commissions another audit.
What breaks that cycle is three things, and none of them is a tool:
- Real-user monitoring, so you see what visitors experience rather than what a test says.
- Budgets that are enforced, so a regression is blocked rather than discovered.
- An owner, because a budget nobody owns is not a budget.
The two kinds of monitoring, and why you need both
Real-user monitoring (RUM) measures actual visitors — their devices, their networks, their countries. It tells you the truth about experience and lets you segment: this metric is fine except on mid-range Android in one region.
Synthetic monitoring runs a scheduled test under fixed conditions. It is reproducible, so it catches regressions precisely and can gate a release. It tells you nothing about who your visitors are.
| RUM | Synthetic | |
|---|---|---|
| Reflects real visitors | Yes | No |
| Reproducible | No | Yes |
| Can block a deploy | No | Yes |
| Needs traffic | Yes | No |
| Shows who is suffering | Yes, by segment | No |
| Good at pinpointing a cause | Rarely | Yes |
RUM tells you that something changed and for whom. Synthetic tells you what changed. Neither replaces the other.
Collecting your own field data
CrUX and Search Console give you Google's view: 28-day rolling windows, 75th percentile, limited segmentation, and nothing for low-traffic URLs. Useful, and not enough to manage a site day to day.
Your own RUM gives you the distribution, the segments, and today's data rather than last month's.
The web-vitals library is the standard way to collect the same metrics Google uses:
<script type="module">
import { onLCP, onINP, onCLS } from 'https://unpkg.com/web-vitals@4?module';
function send(metric) {
const body = JSON.stringify({
name: metric.name,
value: metric.value,
rating: metric.rating,
path: location.pathname,
// Segment on what you will actually want to filter by later.
connection: navigator.connection?.effectiveType ?? 'unknown',
deviceMemory: navigator.deviceMemory ?? null,
});
// sendBeacon survives the page being closed, which is when these often fire.
navigator.sendBeacon?.('/api/vitals', body) || fetch('/api/vitals', { body, method: 'POST', keepalive: true });
}
onLCP(send);
onINP(send);
onCLS(send);
</script>
Three things to get right:
Use sendBeacon. These metrics are often final only as the visitor leaves, and an ordinary fetch can be cancelled.
Record the segments you will want. Page template, connection type, country, device class, logged-in state. Without them you will know the metric got worse and not who for.
Report percentiles, not averages. An average hides the slowest quarter, which is exactly the group Google assesses and the group most likely to leave. Track p75 to match Google, and p95 to see your worst experiences.
Several analytics and monitoring products do this for you. The library is worth knowing about because it is free, it is what the products use, and it keeps your data yours.
Performance budgets that actually hold
A budget is a limit a change is not allowed to exceed. The distinction that matters: a budget is enforced, a target is hoped for. Only the first prevents regressions.
Budget the things that cause your metrics, not only the metrics:
{
"budgets": [
{
"path": "/products/*",
"resourceSizes": [
{ "resourceType": "script", "budget": 300 },
{ "resourceType": "image", "budget": 600 },
{ "resourceType": "stylesheet", "budget": 80 },
{ "resourceType": "total", "budget": 1200 }
],
"resourceCounts": [
{ "resourceType": "third-party", "budget": 10 }
],
"timings": [
{ "metric": "largest-contentful-paint", "budget": 2500 },
{ "metric": "total-blocking-time", "budget": 300 }
]
}
]
}
Set the numbers from where you are now, slightly tightened — a budget far below current reality is ignored within a week.
Enforce it where change happens. Lighthouse CI in your pipeline, failing the build when a budget is exceeded, is the strongest version. Weaker but still useful: a scheduled synthetic test that alerts, and a manual pre-release check.
The one place a budget usually cannot be enforced is a tag manager, because marketing can add a script without passing through your pipeline. That is a governance problem and needs a human answer — see below.
Catching regressions
Alert on the right thing
Alert on a sustained change in a percentile, not on a single bad sample. Real-user data is noisy; one slow session is not a regression.
A workable rule: alert when p75 for a metric is worse than your threshold for a rolling period — a few hours, or a day — on a template that matters. Alerting on every spike trains everyone to ignore alerts, which is worse than no alerting.
Make the timeline obvious
The question after an alert is always "what changed?". You can answer it in seconds or in days, depending on whether you keep a deployment and change timeline alongside the metrics.
Record deploys, app and plugin installs, theme changes, and tag manager publishes. Overlay them on the metric graph. Most regressions are then obvious on sight.
The investigation sequence
- Confirm it is real — sustained, not a spike.
- Narrow it — which template, which device class, which country.
- Find what changed at that time on that template.
- Reproduce it in a lab test with throttling.
- Confirm the cause by removing the change in a staging copy.
- Fix, verify in the lab, then watch the field.
The release check
Monitoring catches what reached production. A pre-release check stops some of it getting there.
A short, practical list, run against a staging copy of your heaviest template:
- Is the LCP element still eager and prioritised?
- Did total JavaScript stay within budget?
- Any new third-party origins? If so, has the cost been measured?
- Do images still carry dimensions?
- Did DOM size grow materially?
- Any new render-blocking resource?
- Are the Core Web Vitals within budget in a throttled lab run?
That takes a few minutes and catches the regressions that cost the most, because they are the ones introduced by ordinary feature work.
Ownership, which is the part that fails
The technical half of this is straightforward. The organisational half is where it breaks.
Performance degrades through decisions made by people who never see a performance report: marketing adding a pixel, merchandising uploading images, support installing a chat widget, a developer adding a dependency. Each is individually reasonable.
What works:
One named owner for the numbers. Not a team — a person who notices and has standing to ask about a change.
A rule that new third-party scripts are measured before going live. Not blocked, measured. Most people accept a cost they can see.
The metrics visible where people already look. A dashboard nobody opens does nothing.
A monthly review, short: what moved, what changed, what we are doing about it.
Monthly performance review — template
-------------------------------------
Field p75 (mobile) LCP ____ INP ____ CLS ____ vs last month ____
Field p75 (desktop) LCP ____ INP ____ CLS ____ vs last month ____
Budget breaches this month: ____
New third-party scripts: ____ measured? ____
Regressions found, and causes: ____
Actions for next month, and owner: ____
Common mistakes
Relying only on CrUX, so you see a 28-day average and no segments.
Reporting averages instead of p75 and p95.
Budgets with no enforcement, which are targets.
Budgets set far below current reality, which get ignored.
Alerting on single samples, which trains people to ignore alerts.
No change timeline, turning every investigation into archaeology.
Synthetic only. You will not know what visitors experience.
RUM only. You will know something broke and not what.
No owner. The most common cause of the whole cycle repeating.
Verification
- Confirm data is arriving for all three metrics, and that it is not dropping when visitors leave — check
sendBeaconis being used. - Check your p75 roughly agrees with CrUX, allowing for different windows and populations. A large divergence usually means a sampling or segmentation error.
- Confirm the budget actually fails a build. Commit a deliberately oversized asset to a branch and check the pipeline rejects it.
- Test an alert by lowering a threshold temporarily.
- Confirm the change timeline is capturing everything — including tag manager publishes and app installs, not only code deploys.
- Run the release check once manually and time it. If it takes more than a few minutes, shorten it or nobody will do it.
When monitoring is not helping
- Data is noisy and unusable → you are looking at averages or small samples. Use percentiles and group by template.
- Your numbers disagree with Search Console → different window, population and sampling. Use yours for day-to-day and Search Console for Google's view.
- Alerts fire constantly → thresholds too tight or based on single samples. Require a sustained breach.
- Regressions are caught but not fixed → a prioritisation and ownership problem, not a monitoring one.
- Budgets are breached and nothing happens → not enforced. Put them in the pipeline.
- Metrics look fine and visitors complain → check your segments. A good p75 can hide a badly broken p95, and your most frustrated visitors are in the tail.
Frequently asked questions
Why does my website get slow again after optimisation?
Because the ordinary work of running a site adds weight — a new app, a marketing tag, a bigger image, another section, a dependency update. None is a bad decision individually. Without monitoring, budgets and an owner, a one-off project reverts within about a year.
What is the difference between real-user monitoring and synthetic monitoring?
RUM measures actual visitors, so it tells you the truth about experience and lets you segment by device, country and connection. Synthetic runs a scheduled test under fixed conditions, so it is reproducible and can block a deploy. RUM tells you that something changed and for whom; synthetic tells you what changed.
Is CrUX enough for monitoring Core Web Vitals?
Not for day-to-day management. CrUX gives a 28-day rolling window at the 75th percentile with limited segmentation and nothing for low-traffic URLs. Your own RUM gives you today, the full distribution, and the segments you need to find who is suffering.
What is a performance budget?
A limit a change is not allowed to exceed — on script size, image weight, third-party count or a metric. The distinction that matters is enforcement: a budget checked in your pipeline prevents regressions, while a budget nobody checks is a target.
How do I avoid alert fatigue with performance monitoring?
Alert on a sustained change in a percentile, not on single samples. Real-user data is noisy and one slow session is not a regression. Alerting on every spike trains everyone to ignore alerts, which is worse than no alerting.
What is the most common reason monitoring fails?
No owner. The technical half is straightforward; performance degrades through decisions made by people who never see a performance report. One named person who notices and has standing to ask about a change matters more than any tool.
References
- web-vitals library — GitHub
- Performance budgets — web.dev
- Lighthouse CI — GitHub
- Chrome User Experience Report — Chrome for Developers