All jobs / Frontend / web developer / Performance
Frontend / web developer interview question · 5+ years
A content site with a few interactive widgets — full CSR SPA or islands / edge?
The strongest answer
Islands or server components for mostly-static pages; a SPA for dense app chrome — decide with JS weight and TTFB, not habit
Why it works
Staff-level frontend is choosing the runtime per surface. Islands shine when HTML is the product.
What a good answer covers
- Match runtime to the page.
- Static + widgets: islands / RSC.
- App chrome: SPA is fine.
- Measure JS and TTFB; still test.
Answers that fall short
- Close, but not the strongest: A SPA for the blog because the team already knows React
Team familiarity is a cost, not the architecture. - Weak: Islands for a heavily client-state dashboard
A dashboard with rich client state still wants a client runtime. - Red flag: Say edge means we don't need tests
Edge moves where code runs; it does not replace tests.
Who gets asked this
More Performance questions
- Personalized HTML at the edge versus cache hit ratio — how do you decide?
- How does a frontend platform prove it is not making products slower?
- Images pop the page down as they load. What do you set and why?
- The main bundle includes an admin charts page most visitors never open. What do you do?
- When would you render a marketing homepage on the server versus a settings screen on the client?
- A late-loading banner pushes content down (CLS). How do you prevent it?
- LCP is a hero image. What do you change first?
- Clicking Filter freezes the tab for about 400ms. How do you investigate?