Skip to content

Part IV — Web Performance ​

Performance is the clearest example of what Part IV is about. It is not a feature; it is a budget somebody is held to. This section covers the three metrics that get measured in public and the loading strategies that move them. It also covers the part most material skips: how to know whether a change helped real users rather than your laptop. An AI feature answers to a second budget, first token rather than largest paint: Latency and Generative UI.

One correction up front, because much published material still has it wrong. INP replaced FID as a Core Web Vital in March 2024. FID measured the delay before the first interaction was handled, and almost every site passed it. INP measures every interaction all the way to paint and takes the worst. Sites that passed FID easily often fail INP, and a candidate still saying FID in 2027 sounds out of date.

Chapters ​

#ChapterWhat it answers
01Core Web VitalsWhich fix moves which metric?
02Loading, Code Splitting and Bundle BudgetsHow do you defer without pushing your largest paint out, and what stops the bundle growing back?
03Caching and Asset DeliveryWhich cache holds each response, and what does the page look like before images, fonts and CSS land?
04Measuring in ProductionWhat are real users experiencing, and what broke for them?

What Interviewers Probe For ​

Performance is where the part-level signal is measured literally:

  • Do you measure before you change anything? The strongest answers start with field data and a profile, not with a list of optimisations. "I would code-split" as an opening move is a guess.
  • Can you name what moves LCP? It is usually the hero image or a render-blocking request, and it is almost never JavaScript execution. Candidates who reach for bundle size first have not debugged a real LCP problem.
  • Do you know why INP is harder than FID? Because it measures every interaction all the way to paint, so a long task anywhere in the session can fail you. This is the current version of the question, and it filters well.
  • Lab or field? Lighthouse scores one simulated device. The Chrome User Experience Report says what real users got. A senior answer uses both, and knows a lab run cannot measure INP at all.
  • What stops the bundle growing back? A budget that fails the build, not an optimisation week. Candidates who have lived through this answer with a CI gate and a size-change comment on the PR.

Reading Order ​

01 first, always. It defines the metrics the other three chapters try to move. Then 02 and 03: the loading fixes that pay off most, and the budget gate that keeps them fixed. 04 is how you check all of it, and it is not optional in production.

Interview sprint: 01 → 02 → 04. The metrics, the loading lever, and how you prove any of it worked. The interaction lever — keeping work inside the frame budget — is Part III's Performance, Transitions and the Compiler.

The whole book, free to read. Generated from the manuscript on every change.

Your progress

Tick each chapter in the sidebar once you have read and understood it. Your name and email keep the ticks on any device.

Your name and email are stored to save your progress. Nothing else is done with them.