Skip to the page

Keeping it fast · senior

A performance method, budgets and CI checks

Senior answers follow a method: measure real users, find the biggest problem by user impact, fix the cause, verify in the field, and stop regressions with budgets in CI (bundle size, Lighthouse) and RUM alerts with an owner.

The notes

What you must know

  • Method: (1) measure field data by page and device, (2) pick the worst metric on the most important pages, (3) reproduce in the lab with throttling, (4) find the cause (subparts/phases), (5) fix, (6) verify in field data at p75, (7) add a guard.
  • Budgets can be quantity-based (JS KB per route, number of requests, image bytes) or metric-based (LCP < 2.5 s in Lighthouse CI on a test device, TBT < 200 ms).
  • CI checks: size-limit or bundle-size checks on every PR, Lighthouse CI with assertions, a comment on the PR showing the change. Lab checks catch regressions early; RUM alerts catch what lab misses.
  • Make it a team habit: a dashboard per page type, alerts on p75 regressions, an owner per page, a performance review for new third-party tags.
  • Talk in trade-offs: SSR cost vs LCP, features vs bundle size, freshness vs cache hit rate, image quality vs bytes.
  • Tie results to business: show conversion or bounce before and after; this is how you get time for performance work.

The red pen

Common traps: mistake → fix

  • Mistake: "I'd use Lighthouse, webpack analyzer, React Profiler..." (a list of tools)

    Fix: interviewers want a method: measure, prioritise, fix, verify, guard.

  • Mistake: "Budgets only on total bundle size"

    Fix: budget per route and per metric, or a big route hides inside a fine total.

  • Mistake: "Fix it once and move on"

    Fix: without CI checks and alerts performance regresses within months.

Easy to hard

Questions interviewers ask, easy to hard

  1. How would you approach a page that 'feels slow'?
  2. Tell me about a performance improvement you made: numbers before and after.
  3. What is a performance budget and how do you enforce it?
  4. How do you keep a 40-engineer frontend fast over time?
  5. How would you scale a website to 10x traffic from a performance point of view?

Practise

Practise with these questions

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview