What web performance is and how it works
Web performance is the speed of a page as the user experiences it: how soon the main content appears, how quickly the page responds to a click, and whether the layout jumps around. It is measured with metrics taken from real visits, not by the time of the load event.
The load time describes poorly what a person actually sees: a server can return an almost empty page instantly and show the content several seconds later. That is why the Chrome team, together with the W3C Web Performance Working Group, defined metrics around the questions users ask: has loading started, has useful content appeared, can I use the page, and does it run smoothly?
Speed is not a single number. The same page is fast on a new phone with a good connection and slow on a cheap phone with a poor one. Two pages with the same load time feel different if one shows content gradually and the other only at the very end. So metrics are collected from real visits (field data, or RUM, Real User Monitoring) and complemented by lab runs under identical conditions. For details, see the section “Measurement: field and lab”.
Speed affects revenue and search. The BBC lost an additional 10% of users for every extra second of loading, and at Vodafone a 31% improvement in LCP brought 8% more sales. For the page experience ranking signal, Google Search uses Chrome UX Report (CrUX) data on real visits.
Loading happens in stages, and each stage has its own metric. TTFB (Time to First Byte) is the time until the first byte of the server response. FCP (First Contentful Paint) is the first content painted, and LCP (Largest Contentful Paint) is the paint of the largest text block or image in the viewport. While a person uses the page, INP (Interaction to Next Paint) measures the delay of clicks, taps and key presses, and CLS (Cumulative Layout Shift) measures unexpected layout shifts. LCP, INP and CLS are the Core Web Vitals, and a page is assessed by them.
How it differs from load testing and server monitoring
| Aspect | Web performance | Load testing | Server monitoring |
|---|---|---|---|
| What is checked | one person’s experience in the browser: content appearing, responsiveness, layout stability | how the system copes with many simultaneous users and requests | how the server behaves under load: response time, errors, memory |
| Load | an ordinary visit | from minimal (smoke) to extreme (breakpoint) | the load of real users |
| Measured with | CrUX, your own RUM, Lighthouse, DevTools | load scripts, for example k6 | exporters and PromQL, Grafana dashboards |
| Key indicators | LCP, INP and CLS at the 75th percentile of visits | number of virtual users (VUs) or throughput, and test duration | response-time percentiles and error rate |
Choose by symptom. If the page is slow for every visitor even on an idle server, it is a web performance problem. If it slows down only at peak hours, it is a load testing problem: see the “Load testing” reference. Server metrics and dashboards are covered in the “Prometheus and Grafana” reference.
What you need to know first
- The “HTML and CSS” reference: the
img,linkandscripttags, and the “Responsive layout” section - The JavaScript reference, the section “Asynchrony: promises, async and the event loop”, which underpins the discussion of long tasks
- The “HTTP and REST” reference, the “Caching” section: the
Cache-ControlandETagheaders
Section sources
the section is written from these pages- User-centric performance metricsweb.dev/articles/user-centric-performance-metrics(opens in a new tab)
- Why does speed matter?web.dev/learn/performance/why-speed-matters(opens in a new tab)
- Web Vitalsweb.dev/articles/vitals(opens in a new tab)
- Overview of CrUXdeveloper.chrome.com/docs/crux(opens in a new tab)
- Load test typesgrafana.com/docs/k6/v2.3.x/testing-guides/test-types/(opens in a new tab)
- Overviewprometheus.io/docs/introduction/overview/(opens in a new tab)