~/talk

Mastering Server-rendered Apps

Talkat React Amsterdam 2016 · on Saturday, 2016-04-16· [nodejs, react]

Uses Node and Express with shared routes and Redux state to build HTML on the server, inlines initial state into the page and hydrates the client; initially renders with renderToString so the page is crawlable and works without JS, then replaces that with a client bundle for interactivity; swaps to streaming via react-dom-stream to start bytes flowing immediately and cut perceived load time instead of waiting for all fetches and full render.

AI-written summary · about

  1. 0:00Start
  2. 3:20It's about sharing code between your server code and your browser code
  3. 5:31Page load is critical Every delay make users go away
  4. 6:25the user is on a slow computer
  5. 6:45the user has a slow connection
  6. 7:42the user is stuck on a computer they don't control (school, library).
  7. 7:59the user trying to download your site to read away from an Internet connection
  8. 8:34the user is using NoScript and visits your site
  9. 9:07the user is using using adblock and you've named a critical JS bundle with something related to ads
  10. 9:35Good news! ALL of these problems can be solved with server-rendering
  11. 16:15Need to rely on a fetch method before render Relatively slow due to lack of optimisations like cache
~/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.