Browser & Frontend Runtime
Putting it together: multiple-choice review
Six questions that cut across the whole browser track — event loop, render pipeline, V8, workers, fiber, SSR/SSG, and Core Web Vitals collapsed into one page. Each one is a decision you make staring at a real trace, not a definition to recite.
Confirm you can connect every layer of the page-load relay into one chain: why the symptom routinely names the wrong layer, why hydration is the hinge, and which track is the constraint at the moment that matters.
A server-rendered product page hits LCP at 1.4 s (good) but the first tap on 'Add to cart' at 2.0 s records INP 700 ms. What is the structural explanation?
A DevTools trace shows LCP firing late while the hero image is still on the network track at the LCP moment. Which layer is the actual cause, and which is paying for it?
The 'Add to cart' re-render that should cost ~5 ms costs ~80 ms and tanks INP, even though the bundle is small and the handler is short. What is the most likely cross-layer cause?
A deploy ships new HTML and a new JS bundle, but a fraction of returning users hit runtime errors and some are stuck on a broken page even after the fix deploys. What is the canonical break and the layer?
A junior optimises the 'Add to cart' handler from 12 ms down to 6 ms; field INP stays at 480 ms. What did the three-track method say they should have done first?
One RUM session is poor on every metric: TTFB 2980 ms, LCP 6800 ms (hero is a CSS background-image), INP 540 ms (LoAF names the hydration script), CLS 0.21 (price re-rendered). Which single fix has the most leverage to start with, and why?
The through-line across the track is one chain: TTFB is the floor, discovery feeds LCP, V8 parse plus the reconciler feed the hydration long task, and that long task is the hinge that determines early INP. The symptom routinely names the wrong layer — ‘slow image’ is discovery, ‘React is slow’ is a megamorphic V8 shape, ‘broken after deploy’ is a stale worker cache. The discipline is always the same: measure before touching, find the constraint track at the constraint moment, fix the dominant cause (TTFB and hydration cost first), then re-measure.