The Bumpy Road to Universal JavaScript
summary
A practical tour of making React run on both server and client with concrete fixes: use server-side rendering to speed first meaningful paint, split into client/server entry points and export a render function, proxy API calls so server can fetch its own routes, serialize state to window with bracket-escaping to avoid XSS, and lazy-load heavy modules to avoid the uncanny valley. Covers Webpack tricks like webpack externals and isomorphic modules, plus response streaming using stream-template and tradeoffs when bundles are small.
AI-written summary · about
chapters (11)
- 0:00Start
- 0:02Journey Preparations
- 1:03Performance
- 1:47Seo
- 11:37Isomorphic Fetch
- 15:05Data Fetching
- 19:44Cross-Site Scripting Vulnerability
- 20:48Uncanny Valley
- 23:50Response Streaming
- 25:15Stream Template
- 29:10Master's Thesis








