1) Know what you’re maintaining (the only numbers that matter)

Core Web Vitals = LCP (loading), INP (responsiveness), CLS (stability). “Good” targets are commonly:

  • LCP ≤ 2.5s
  • INP ≤ 200ms
  • CLS ≤ 0.1

And the score that matters operationally is p75 (75th percentile) field data—not a single Lighthouse run.

If p75 is good, most users are having a decent time. If it’s not, your users are filing silent bug reports with their feet.

2) Use field data for truth, lab data for alarms

  • Field: Search Console / CrUX / PSI field section → “are users actually suffering?”
  • Lab: Lighthouse CI in PR → “did this change likely make things worse?”

3) The tiny system that prevents most regressions

A. Track CWV per template (not per URL)

Group by route templates like: home, product, checkout, blog. That maps directly to ownership.

B. Alert on regression deltas

Don’t only alert on “bad”. Alert on “worsening” (week-over-week or release-over-release). Regressions are cheaper at +5% than at “everything is on fire.”

C. Gate critical templates in PR

You don’t need perfect CI perf testing. You need a blunt instrument that catches:

  • missing preloads
  • big new render-blocking resources
  • CLS jumps from “just a banner”

D. Control third-party

Most teams lose CWV to “one more tag”. Treat third-party scripts like dependencies with budgets + approvals.

4) Pro tips (short, spicy, effective)

  • Pick a single CWV owner per template. Not a team, a person. (Teams are where accountability goes to become folklore.)
  • Define a “no new UI above the fold without reserved space” rule. This kills a huge class of CLS regressions.
  • No new third-party scripts on checkout without review. Checkout is where performance issues turn into revenue issues.
  • Ship a rollback plan for tags/experiments. If it can’t be rolled back quickly, it shouldn’t launch quickly.

Code snippet 1: Minimal RUM (Web Vitals → your endpoint)

import { onCLS, onINP, onLCP, type Metric } from 'web-vitals'

export function initWebVitals() {
 onLCP(reportMetric)
 onINP(reportMetric)
 onCLS(reportMetric)
}

function reportMetric(metric: Metric) {
 const payload = {
  name: metric.name,
  value: metric.value,
  rating: metric.rating,
  id: metric.id,
  path: location.pathname,
  template: inferTemplate(location.pathname),
 }

 void fetch('/api/vitals', {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify(payload),
  keepalive: true,
 })
}

function inferTemplate(path: string): string {
 if (path === '/') return 'home'
 if (path.startsWith('/product/')) return 'product'
 if (path.startsWith('/checkout')) return 'checkout'
 if (path.startsWith('/blog/')) return 'blog'
 return 'other'
}

Code snippet 2: Simple PR gate with Lighthouse CI (budgets)

{
 "ci": {
  "collect": {
   "numberOfRuns": 3,
   "url": [
    "http://localhost:3000/",
    "http://localhost:3000/product/123",
    "http://localhost:3000/checkout"
   ]
  },
  "assert": {
   "assertions": {
    "largest-contentful-paint": ["error", { "maxNumericValue": 2500 }],
    "cumulative-layout-shift": ["error", { "maxNumericValue": 0.1 }],
    "categories:performance": ["warn", { "minScore": 0.8 }]
   }
  }
 }
}

Checklist (copy/paste into your repo)

  •  Track CWV in the field (p75), segmented by template + device class
  • Alert on regression deltas (by release)
  •  Lighthouse CI gate for top 3 templates
  •  “Reserved space” rule for anything above the fold (CLS)
  •  Third-party inventory + approval + rollback plan

Source: Google Web Vitals