All jobs / Frontend / web developer / Performance
Frontend / web developer interview question · 3–5 years
An SSR page waits for user, then cart, then recommendations, sequentially. What's the issue and the fix?
The strongest answer
Parallelize independent server fetches, stream or defer the non-critical work, and avoid a second waterfall after hydrate
Why it works
Waterfalls are TTFB. Independent data should start together; recommendations can stream.
What a good answer covers
- Don't await what you can start together.
- Fire independent server fetches in parallel.
- Defer or stream extras.
- Don't re-fetch the same tree on hydrate.
Answers that fall short
- Close, but not the strongest: Move all fetches to the client
Client-only moves the waterfall onto the phone. - Weak: Build one mega-endpoint you cannot cache
A mega-endpoint can help one page and hurt every cache. - Red flag: Block HTML on all three plus ads
Ads in the critical HTML path are a common LCP own-goal.
Who gets asked this
More Performance questions
- A content site with a few interactive widgets — full CSR SPA or islands / edge?
- 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?