~/talk

Streaming in Next.js

Talkat Next.js Conf 2021 · on Tuesday, 2021-10-26· [web-platform, nodejs]
slides:none on file

Experimental Next.js feature enables streaming with getServerSideProps by splitting server rendering into a two-flush pattern: first flush sends headers and head as soon as routing finishes, second flush sends body when data is ready. Early tests report a 2–5% LCP gain translating to roughly 400–600 ms saved in many cases. It targets React 17 apps, requires moving next/head and next/script into the top app component, and forces client-side error handling because status headers are sent before full render.

AI-written summary · about

  1. 0:00Start
  2. 7:30CSR Loading
  3. 13:25Current SSR Loading
  4. 17:03Two-flush strategy
  5. 18:45Current API
  6. 19:56Prospective API
  7. 20:45Caveats
  8. 24:05Move and
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.