React Loadable: Code Splitting with Server Side Rendering
summary
A concrete implementation using React Loadable with webpack 2 and Node to enable code-splitting together with server-side rendering. Covers extracting webpack stats, building a server-side require map, collecting which async bundles were used so the server inlines only needed scripts, explains the 200ms loading delay and hover prefetch behavior, documents the unavoidable double render on the server, and shows integration with Redux and Redux-Saga.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 2:00Large bundle problem
- 5:50Code splitting tools
- 7:45Component splitting
- 10:18React Loadable basics
- 14:42Flicker on load
- 16:51Server Side Rendering
- 19:52SSR code splitting issues
- 22:31Sync loading fix
- 24:15Webpack bundle stats
- 25:42SSR demo
- 28:53Pre-render data
- 31:21Static data provider
- 34:02SSR data demo
- 36:52Summary and usage
- 37:58Additional tools
- 39:24Q&A
related talks
24mA Beginner's Guide to Code Splitting Your React App
33mMaximising performance with React code-splitting techniques
33mUniversal React Apps Using Next.js
09mNative React 18 Code-Splitting with Gatsby
44mServer Side Rendering from the trenches
19mReact Server Components - Under the Hood
38mBuilding Isomorphic Web Applications with React
30mThe Bumpy Road to Universal JavaScript
