Field data picks the fire

React chapter 148 · Web Perf · lab vs field · p75 · CrUX, RUM, PerformanceObserver · source: capturing metrics, lab vs field, tools, and RUM

The problem

Lighthouse is green on the developer’s laptop, so the team declares the page fast. Real users on budget phones still wait: one clean lab run and an average have hidden the slow tail.

The pattern that fixes it

Use field data at the 75th percentile to choose the metric, route, and user cohort that hurts. Then reproduce that cohort in a controlled lab trace, fix the diagnosed cause, and return to field data to validate the result.

In plain words

A lab test is a controlled experiment; field data is what real visitors experienced. Field data tells you where the fire is. A lab trace helps you find which wire started it.

A doctor uses population symptoms to decide which problem matters, then uses a focused scan to diagnose one patient. One perfect treadmill run cannot describe the whole city.

Terms

lab data
A repeatable test on one chosen device, network, page, and moment. Best for diagnosis.
field data
Measurements from real visits across real devices and networks. Best for understanding experience.
p75
The 75th percentile: 75% of visits are at or faster than this value; the slower 25% are not averaged away.
RUM
Real User Monitoring: your own field telemetry, usually with route, device, region, and metric attribution.

Going deeper

CrUX and RUM answer different questions

CrUX is public, aggregated Chrome field data and is useful for an outside-in view. RUM can cover your authenticated and private routes, add product context, and alert sooner. Either one chooses the problem; neither replaces the diagnostic detail of a Performance trace.

Why one average lies

A fast desktop majority can pull the average below a target while a large mobile cohort is still slow. Inspect p75 by route and meaningful cohort. Do not slice so narrowly that a handful of visits looks like a trend.

Collect the least data you need

The web-vitals library normalizes Core Web Vitals collection. Send the metric name, value, route, and coarse diagnostic context; sample traffic and avoid URLs or attributes that contain personal data. Observability code also has a cost, so keep it small and off the critical path.

Validate in the same place you found the problem

A lab trace can prove that a fix removed a long task or advanced image discovery. It cannot prove that p75 improved for real users. Release safely, compare the same route and cohort over enough visits, and watch the product metric beside the performance metric.

Keep learning

Overview

Real life: eight fast desktop visits and eight slower mobile visits. The team reports one number. How the team summarizes LCP 75th percentile Desktop and mobile LCP summaries Desktop p75 Mobile p75 Reported average Reported p75 The average says “good.” p75 exposes the slow tail. Half the visits are on the slower mobile cohort, but the fast desktops drag the report under 2.5 seconds. Now the team can segment the field data: mobile p75 is the cohort to reproduce and diagnose. Start on Average: the roll-up looks healthy even though the red visits are still visible. Click 75th percentile: the summary now represents the slower end of ordinary visits, not the centre. Compare desktop and mobile p75. A single laptop trace cannot choose between those cohorts. 1 · Field pick metric + route 2 · Segment find the cohort 3 · Lab reproduce + trace 4 · Field validate p75 Field data chooses the problem, segmentation finds the cohort, a lab trace diagnoses it, and field data validates the release. Do not stop at the green Lighthouse score. The performance investigation loop Start with field p75. Pick the slow metric and route, not the optimization you already wanted to build. Segment by meaningful context: device class, region, connection, release, and route. Keep enough visits for a stable signal. Reproduce that cohort in the lab. Use the Network panel for request chains and the Performance panel for main-thread work. Field metric User cohort All visits Budget mobile keep watching the field reproduce this cohort now Field chooses Lab diagnoses name: metric.name, value: metric.value, route: location.pathname, field signal + route device: coarseDeviceClass(), release: APP_VERSION, diagnostic context This cohort is within the good threshold. Do not invent work from a healthy number. Check another metric or cohort and keep monitoring regressions. Choose All visits → INP. The roll-up looks healthy. Switch only the cohort to Budget mobile. The action changes from Monitor to Trace. Choose CLS. The recommended lab evidence changes because layout instability is not a long-task problem.

More courses

  • Jobs, linked to lessons — Browse jobs where every requirement links to the chapter that teaches it. See how ready you are, how long the gap takes to close, and which listings look stale.
  • Match a job post to courses — Paste a job post. Each skill is matched to a track here and put in learning order, foundations first.
  • Databases in depth — How a query becomes work. Indexes, isolation, locks, and the plans that explain why a page is slow — not an ORM tour.
  • System Design — Core concepts first (SQL vs NoSQL, CAP, indexing, replication, sharding), then designs grouped by what carries them: the database, Redis, Kafka, or many services.
  • NestJS: build a real API — One ticket-booking API, built in order: a plain Node server first, then NestJS modules, validation, a real database, and the features real clients lean on.
  • Microservices — Microservice patterns one diagram at a time: how to split a monolith, how services talk, and how data stays consistent without distributed transactions.
  • Kafka — A beginner-to-senior path through event logs, reliable delivery, production operations, and disaster recovery.
  • AI engineering for software engineers — Eight free reads, in order, for software engineers moving into AI: when to build an agent, how to build one, how to test it, and how the model works underneath.
  • Frontend system design — How a UI is sliced when it is a product, not a page: ownership of state, cache, routes, and what happens when the network lies.
  • TypeScript in depth — The type system as a design tool. Inference, narrowing, generics, and the errors that mean the model is wrong — not a catalog of utility types.
  • CSS in depth — See the box, then the page. Visual chapters from the box model through Flexbox surprises, Grid, selectors, and units, then backgrounds, shapes, and visual effects, each with a playground.
  • Accessibility — Foundations first (WCAG in plain words, semantic HTML, lists, alt text), then hands-on HTML labs, a full pass of WAI-ARIA 1.3, and a final fix-the-page challenge.
  • Docker — What an image is, why layers cache, and how containers find each other on a network.
  • Redis — Fifteen Redis patterns, one picture each: cache, session, lock, counter, rate limiter, queue, and when Redis is the wrong tool.
  • Kubernetes — Kubernetes from zero to operators: why it exists, Pods, Deployments and Services, then configuration, networking, storage, scheduling, scaling and security.
  • AWS — AWS networking in plain English. A VPC is a gated housing society: streets are subnets, the Internet Gateway is the main gate, and a route table is the signboard.
  • Networking: the NetRoute game — NetRoute is a packet logistics game. You wire up computers, switches, routers, firewalls and gateways, set each device, and watch glowing packets travel. If a packet gets dropped, the game shows you which header field was wrong.