skip to content

As frontend lead for an online store whose page types belong to five teams, what default rendering policy would you set, and what must a team show to depart from it?

level: principalimportance: nice to knowfreq 35%

answer

  1. a default per class of page
  2. the four inputs as the reason to differ
  3. field targets per page type
  4. seams owned centrally
  5. revisit when inputs change, not on a calendar

basics

~20 s

Set a default per class of page: shared public pages prerendered and regenerated with islands, per-request rendering for request-dependent content, client rendering for signed-in tools. A departure needs field data tied to a changed input.

solid answer

~50 s

I would publish a default per class of page, keyed on the four inputs. Shared, indexed pages - home, catalogue, help - are prerendered and regenerated, with islands for their interactive parts. Pages whose content depends on the request, such as search, render per request on the server. Signed-in, unindexed tools - cart, checkout, account, the seller dashboard - render in the browser. Each page type carries field targets: LCP within 2.5 s and INP of 200 ms or less at the 75th percentile, plus a script budget for its class. A team may depart when an input has changed - the page became personalised, or needs fresher data than regeneration gives - and it brings field numbers, the server or search cost of the change, and an owner for any new seam. The header, session handling, status-code rules and shared components stay central, because every mode leans on them.

go deeper

for a junior

Recall that a store's pages fall into a few classes - shared and indexed, request-dependent, personal - and each class has a usual rendering mode.

for a middle

Explain how the four inputs place a page type in a class, and what field targets make a page's mode checkable.

for a senior

Show how you would evaluate one team's request to change mode, using field data, the cost of the change and the seam it creates.

for a principal

Set the default, the evidence a departure needs and the central parts no team may change, and weigh consistency against letting teams fit their page types.

## Why a policy and not a debate per page When five teams own different page types, each team picking its own rendering mode case by case leads to the same argument repeated five times and a store whose pages behave differently at every seam. A **default rendering policy** turns the choice into a rule with known exceptions. The aim is not uniformity for its own sake; it is that a new page type gets a sensible mode without a meeting, and a departure is an informed decision rather than a preference. ## The default, by class of page | Class of page | Examples | Default mode | Why | |---|---|---|---| | Shared and indexed | home, category, product, help articles | prerendered, regenerated on change, with islands | fast first byte and early content; little script | | Request-dependent and public | search results, filtered views | server per request; stream a slow region | unbounded URLs; content in the first response | | Personal and unindexed | cart, checkout, order history | client rendering behind sign-in | no search need; never in a shared cache | | Signed-in tools | seller analytics dashboard | client rendering | app-like interaction, live data | The class is decided by the **four inputs**: how fresh the content must be, whether it varies per visitor, whether it must be indexed and previewed, and which latency target it carries. ## Budgets that make the default checkable - **Field targets per page type**: LCP within 2.5 s and INP of 200 ms or less, judged at the 75th percentile of real page loads, split by mobile and desktop as the published Core Web Vitals guidance recommends. - **A script budget per class**: a shared, indexed page ships a small fraction of what checkout ships; a mostly static page that ships nearly as much as checkout is a signal to investigate. - **First-byte time as a supporting number**: the published guide of 0.8 s or less is a rough guide, weighed against how the page delivers its content. - **A freshness window per page type**, agreed with the business: how stale a price or stock badge may be on a shared page before the cart corrects it. ## What a departure must show 1. **Which input changed** - the page became personalised, must now be indexed, or needs fresher data than regeneration can give. 2. **Field evidence** - numbers at the 75th percentile for the page type, not a single lab run on a fast laptop. 3. **The cost** - server spend for per-request rendering, crawl exposure for client rendering, a staleness window for regeneration. 4. **An owner for the new seam** - who maintains the boundary the departure creates. A departure that rests on taste - preferring one mode's developer experience - does not qualify. ## What stays central - **The shared header and session handling**, which every page renders whatever its mode. - **Status-code rules** - which URL prefixes the client router owns, and that everything else gets a real server `404`. - **Shared components** that must render identically on the server and in the browser. - **Deploy rules for pages of different ages**: earlier builds' assets stay available, and shared APIs change additively. - **The measurement itself**: field data collected the same way on every page type, so one team's numbers can be compared with another's and a departure's evidence means the same thing everywhere. ## The costs of the policy - **Some legitimate cases wait.** A strict default slows a team whose page genuinely differs; the departure process must be light enough to use. - **Defaults age.** Page types change inputs - a once-public price becomes per trade account - so the policy is revisited when an input changes, with field data per page type making the change visible. - **Central ownership costs people.** The seams need a named owner, or they fall between teams. - **It is a starting point, not a verdict.** The seller dashboard being client-rendered is the policy working, not an exception to it. A good answer in the round names the default, the evidence for departing, and the parts no single team may change.

  • The seller-dashboard team wants per-request server rendering because the dashboard 'feels slow'. Do you approve?
    Not on that evidence. The dashboard is signed-in, unindexed and app-like, which is the client-rendering class. I would ask for field numbers first: if the slow part is the analytics queries or a heavy script bundle, server rendering adds server cost and a hydration step without fixing either. I would approve only if the first view's content demonstrably arrives faster from the server and the team owns the new seam.
  • How do you stop the policy going stale?
    Tie it to inputs, not to page names: each page type records its freshness, personalisation, indexing and latency answers, and the field targets are tracked per page type. When an answer changes - a page becomes personalised, or must now be indexed - that is the trigger to revisit its mode. A calendar review alone tends to rubber-stamp whatever is there.

  • One rendering mode for the whole store keeps the teams consistent
  • A team may pick any mode if its lab scores look good
  • Approve a departure because the team prefers that mode's tooling
  • Let each team keep its own diverging copy of the header and session code
  • Set the policy once; page types never change their inputs