~/talk

Native React 18 Code-Splitting with Gatsby

Talkat GatsbyCamp Fall 2021 · on Thursday, 2021-09-16· [react, frontend-architecture]
slides:none on file

Shows a concrete migration: replace loadable-components plus a Gatsby SSR plugin with native react.lazy and wrap templates in Suspense with a fallback, bumping to React 18 (tested on Gatsby 3.9+). Uses a 10,000‑page test site that randomly includes components to prove fine‑grained splitting, finds a carousel costing ~100 KB of deps but only adds ~10 KB to pages that render it, and demonstrates removing plugin deps and successful builds serving smaller per‑page bundles.

AI-written summary · about

  1. 0:00Start
  2. 0:25What Code Splitting Is
  3. 1:30Flex Pages or Flex Components
  4. 3:02Loadable Components
~/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.