All jobs / Frontend / web developer / Performance
Frontend / web developer interview question · 1–3 years
When would you render a marketing homepage on the server versus a settings screen on the client?
The strongest answer
SSR or SSG for public, SEO- and LCP-critical pages; client render (or islands) for authed chrome that is session-specific
Why it works
Match the render strategy to the page: public first paint vs private client state.
What a good answer covers
- Pick SSR/SSG vs CSR per page.
- Public marketing: server or static HTML.
- Authed settings: client is often enough.
- Don't treat 'we use React' as the strategy.
Answers that fall short
- Close, but not the strongest: SSR everything, including the authed dashboard
SSR for an authed dashboard can work, but it is not free — cache, session, and TTFB all change. - Weak: CSR everything because it is a React app
CSR-only marketing pages often lose LCP and reliable indexing. - Red flag: Say SEO does not matter because crawlers run all of our JavaScript
Crawlers are inconsistent; you don't bet the homepage on that.
Who gets asked this
More Performance questions
- 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?
- Product asks if the new home is faster. What do you report?
- How do you ingest Web Vitals without drowning the backend or leaking PII?
- How do you keep marketing JS from growing without anyone noticing?
- Ten thousand rows in a div and the tab dies. What do you do?
- A feature flag flips the hero after hydrate (flicker). How do you prevent it?