Your interviewer gives you a mobile product page with a green Lighthouse score. Shoppers still wait for the product photo, tap a size twice because the first tap seems lost, and watch the purchase button slide down as the delivery estimate appears. Which symptom would you investigate first, and what evidence would change your mind?
Work through one fictional storefront journey in this practice exercise. The page design, timings, sample counts, and rollout rules below are invented. Use them to explain how you would move from an imprecise complaint to a trace you can read, a fix you can test, and a release decision you can defend.
Define the journey and success criteria
Scope the prompt to shoppers who open a product page on a phone, choose a size, and add it to their cart. Ask whether the issue happens on the first visit from a search result, on repeat visits, or both. Confirm that price, the selected size, and stock status must stay accurate. That rules out a superficially faster experience that accepts a purchase before it knows which variant was chosen.
Largest Contentful Paint (LCP) measures when the largest eligible image, text block, or video in the viewport renders relative to navigation. Interaction to Next Paint (INP) measures responsiveness across clicks, taps, and keyboard interactions during a visit. It generally represents the slowest interaction, with one highest-latency interaction discarded for every 50 interactions. Cumulative Layout Shift (CLS) captures the highest-scoring burst of unexpected layout shifts across the page lifecycle. The burst groups shifts less than a second apart for up to five seconds. LCP definition, INP definition, CLS definition.
Google's good targets are LCP at or below 2.5 seconds, INP at or below 200 milliseconds, and CLS at or below 0.1, assessed at the 75th percentile separately for mobile and desktop. Add two measures specific to the exercise. Measure time from the size tap to updated availability, and track successful adds to cart per eligible product-page visit alongside the failure rate among add-to-cart attempts. A quick first paint can show the selection immediately while the stock lookup is still pending. Core Web Vitals thresholds, INP and next-paint behavior.
Find the affected users in field data
Check the scope and coverage of each measurement
PageSpeed Insights pairs field data from the Chrome User Experience Report (CrUX) with a simulated Lighthouse run. Check the label on the field result. If a URL has insufficient data, PageSpeed Insights can fall back to origin data that includes other pages. CrUX reflects eligible Chrome users and aggregates observations across a rolling 28 days. That makes it useful for a baseline, while a freshly deployed page version needs a more immediate signal. PageSpeed Insights methodology, CrUX eligibility, CrUX aggregation window.
For the release, use first-party real-user monitoring (RUM). Collect metric values against a product-page route template, device class, navigation type, and assigned version. For sampled diagnostics, use stable labels such as “size picker” and “delivery slot” that carry no shopper input. The Google-maintained web-vitals library's attribution build can supply details about the relevant element or interaction. Send the fields you need and track which visits can report each metric. A visit with no qualifying interaction yields no INP observation. Web Vitals attribution, When a visit reports INP.
Choose one cohort to reproduce
In the fictional baseline, 10,000 mobile product-page visits produced 9,400 LCP observations, 9,350 CLS observations, and 6,200 INP observations. Their respective p75 values are 3.8 seconds, 0.18, and 380 milliseconds. In the sampled diagnostics, suppose the late photo appears mostly on direct arrivals with cold caches, and repeat visitors still see the delivery box shift the button. Reproduce the first visit to investigate the photo and keep repeat visits in the CLS check. Report each cohort's counts and coverage beside its percentiles. If an overall p75 changes while the cohorts stay flat, check whether the mix of visits changed before assigning credit to the release. Calculate a combined percentile from the underlying distributions when you need one.
Reproduce the cohort in a browser trace using a representative phone or calibrated throttling. Test a cold load and a repeat load, then tap a size as soon as the control looks usable. Stay on the page until the delivery estimate arrives. A Lighthouse navigation run can flag loading problems and main-thread blocking through Total Blocking Time (TBT). It takes an interaction trace to inspect the actual size tap. For before-and-after comparisons, replay the same interaction under the same CPU, network, and cache conditions. Why lab and field results differ, Lighthouse Total Blocking Time, Chrome DevTools Performance panel.
Trace the load, tap, and layout shift
LCP and the late-discovered product photo
Confirm the LCP element in the trace first. Assume it is the product image on the phone. In one invented trace, the HTML's first byte takes 650 ms, the image request starts 1,200 ms later, the image transfers in 550 ms, and the browser takes 900 ms more to paint it. Those four parts add to 3,300 ms for that navigation. Use the waterfall to inspect the request initiator and the events between the end of the image request and its paint. LCP subpart analysis.
Suppose the initial HTML includes a gallery placeholder and JavaScript inserts the image after initialization. Test a responsive <img> with srcset and sizes in the first HTML response, eager loading, and an appropriately scoped fetchpriority="high" hint for this image. Keep offscreen gallery images out of that priority class. If discovery starts 950 ms sooner and the other intervals hold, the arithmetic gives 2,350 ms for the same navigation. That is a hypothesis for the next trace. If JS still keeps the gallery hidden until it initializes, the wait can move into render delay and erase the gain. Confirm both the earlier request and the earlier paint. Resource discovery and render delay.
INP and the size picker that looks ready
On the fictional trace, the tap spends 180 ms waiting behind ongoing work, 100 ms in event processing, and 80 ms waiting for the next paint. Follow the main thread around the tap. Suppose a recommendations widget is using the thread before the event handlers start, and selecting a variant then triggers an expensive rerender of the whole gallery. Try deferring or splitting the widget work and narrowing the state update to the picker and its immediate feedback. Compare the corresponding intervals in the new trace. INP subparts and diagnosis.
Show the selected size and a clear pending stock state promptly. Keep the cart action gated on confirmed availability for that exact variant, and discard stale replies when shoppers tap another size during the lookup. Measure tap-to-stock-resolution from the input event's timestamp to the application mark when updated availability is committed. Timing from handler entry would miss the wait to run it. Use a trace to see when the result is painted, and test that keyboard focus survives rerenders. W3C User Timing, Inspecting the interaction trace.
CLS and the delivery estimate that moves the button
Look at the frames before and after the shift. The button moves, but in this example the cause is the newly inserted delivery box above it. If the photo shifts content by 0.07 and the delivery box shifts it by 0.09 within the same session window, that burst scores 0.16. A later isolated burst of 0.04 leaves the example CLS at 0.16. A delayed network response can also cause a counted shift after the 500 ms grace period for qualifying input. CLS scoring and recent input, Post-load layout shifts.
Reserve the photo's aspect ratio and lay out an estimate slot that can accommodate loading, success, and failure. Test narrow screens, long localized estimates, and larger text. If the exact height is hard to reserve, consider a placement where the estimate can expand without displacing the cart button. Replay the same load and interaction to check that the shift disappears while the delivery message stays readable. Reserving space for images and dynamic content.
Roll out the smallest useful fix
In the exercise, start with serving the product image in the initial HTML with reserved dimensions. That change has a clear owner on the product-page team and a concrete prediction for the request and paint timestamps. Launch it independently of the size-picker rewrite. Ask the inventory and cart owners to confirm correctness signals and agree with the storefront owner on who can pause the release. For a shared component, check one other high-traffic template before expanding the scope.
For an example rollout, randomly assign 5% of eligible traffic to the new version with stable assignment over the shopping journey, and compare against concurrent control traffic. Before launch, agree on a minimum sample count for each critical cohort, acceptable uncertainty, and how long to wait. Report p75, the fraction of observations meeting the target, and volume for each metric. For this exercise, propose expanding when the target cohort's LCP p75 is at least 300 ms faster than control, the agreed confidence interval for the difference excludes zero, and metric coverage, INP, CLS, and the cart guardrails hold. Pause while the data are sparse. Disable the change for confirmed wrong-variant behavior or a sustained deterioration beyond the cart guardrail. If serving both variants through an edge cache, test that the cache key separates them and that switching off the flag actually returns the old page to new navigations. Google SRE Workbook on canary evaluation.
Keep the trace that verified the fix and use it to build a regression check. For instance, a product-page navigation test can assert that its hero image appears in the response HTML, and a separate journey can exercise the picker during startup and confirm the cart receives the chosen variant. Record load and interaction timings alongside those checks, then keep measuring on real devices after rollout.
Practice the explanation and follow-ups
Set a twelve-minute timer. Spend two minutes scoping the journey, three choosing cohorts and evidence, four walking through the trace you would collect, and three explaining the proposed rollout. Use these questions as a self-assessment rubric for this practice exercise.
- Could you find the right population? Explain what you would do if PageSpeed Insights showed good origin data while first-time mobile product-page visitors still reported slow loads.
- Could you test your diagnosis? Draw the LCP waterfall from memory. If the photo downloads earlier and paints at the same time, identify the next interval to inspect.
- Could you defend the release? Explain why a faster size tap earns a pause if the wrong variant reaches the cart. Describe what you would check before resuming.
Say what would change your mind
End your answer with the next observation that could change your decision. If the image request moves earlier and LCP stays flat, explain how you would test whether the gallery is hidden until its client code initializes. If the canary improves LCP but add-to-cart failures rise, explain how you would protect the shopping journey while investigating. The evidence you ask for next tells the interviewer how you would work through a real release with the team.
Practice your web performance interview
Use Interview Copilot to rehearse a technical interview answer and practice explaining how your diagnosis informs the rollout.
Start preparingSources & References
- web.dev — Core Web Vitals metrics and thresholds
- web.dev — Largest Contentful Paint
- web.dev — Interaction to Next Paint
- web.dev — Cumulative Layout Shift
- Google for Developers — PageSpeed Insights methodology
- Chrome for Developers — CrUX methodology
- Chrome for Developers — CrUX API aggregation window
- Google Chrome — The web-vitals library and attribution
- web.dev — Differences between lab and field data
- Chrome for Developers — Lighthouse Total Blocking Time
- Chrome for Developers — DevTools Performance features reference
- web.dev — Optimizing Largest Contentful Paint
- web.dev — Optimizing Interaction to Next Paint
- W3C — User Timing
- web.dev — Optimizing Cumulative Layout Shift
- Google SRE Workbook — Canarying Releases