Lesson 1 · Unit 01
User-centred metrics
Three numbers for what a visitor sees and feels
What you practise
- When the main content appears, how fast the page reacts, how much it jumps: the Core Web Vitals and what each one measures
Try a question from this lesson
Pick one
Two news pages both finish loading everything at 4 s. Page A shows its headline and photo at 1 s; page B stays white until 4 s. Which will readers call faster?
Correct answer
A: they judge by when the content appears
Why
Readers do not see a "finished" event. They see a white screen or an article. A reads as a 1 s page that keeps tidying up in the background, B as a 4 s page. Counting total load time as speed would score them equal, which is why it is a poor measure.
The ideas
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Three questions, three numbers
The Core Web Vitals measure a visit from the user's side.
Largest Contentful Paint (LCP): time from the start of navigation until the largest image or text block in the viewport is drawn.
Interaction to Next Paint (INP): how long the page takes to show a response to a tap, click or key press.
Cumulative Layout Shift (CLS): how much visible content jumps around unexpectedly.
Has the main content shown? LCP
Does it react when I tap? INP
Does it stay where it was? CLSConcept
How big is a jump?
A layout shift happens when a visible element starts a frame in a different place than before.
Its score is impact fraction × distance fraction. Impact: the share of the viewport covered by the moved content, before and after together. Distance: how far it moved, divided by the viewport's larger side.
CLS is the worst burst of shifts during the visit, where shifts less than a second apart belong to one burst.
score = impact x distance
impact = area touched / viewport area
distance = pixels moved / viewport sideConcept
What counts as good
web.dev sets the thresholds, and they can be revised. Its current guidance is in the table.
Each is judged at the 75th percentile of visits, phones and desktops separately: three visits in four must be at least that good. Between the two columns is "needs improvement".
Learn what each number measures. The limits are for looking up.
good poor
LCP <= 2.5 s > 4 s
INP <= 200 ms > 500 ms
CLS <= 0.1 > 0.25
at the 75th percentile of visits9 more exercises in the app
- 3× multiple choice
- 2× true or false
- 2× type the answer
- 1× match the pairs
- 1× order the lines
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.