~/talk

A Beginner's Guide to Code Splitting Your React App

Talkat React Conf 2017 · on Tuesday, 2017-03-14· [react, web-performance]
slides:none on file

Claims that code splitting is easy now and practical: use dynamic import with webpack 2 and the Babel plugin to emit separate bundles, keep a hashed vendor file for long‑term caching, and cut initial payloads for the reported 75% mobile traffic. Prototype work shows responsive components (mobile first) and conditional lazy upgrades for desktop; watch for SSR markup mismatches, the microtick delay of async imports, and mitigate waterfall stalls with link preload/prefetch and real‑device profiling.

AI-written summary · about

  1. 0:00Intro
  2. 1:09What we think
  3. 1:40Mobile first
  4. 2:34Browser support
  5. 2:47Shipping JS
  6. 3:20Long Term Caching
  7. 4:23Ship Less JS
  8. 5:29Easy to use
  9. 5:40Before
  10. 6:56Simple example
  11. 7:14Run Webpack
  12. 7:34What we load
  13. 8:00Loaded async
  14. 8:43Async React Components
  15. 9:44Simple Lazy Load Component
  16. 11:14Patterns
  17. 12:41Route level splitting
  18. 14:15Maps to application hierarchy
  19. 15:31Quick recap
  20. 16:16Component level splitting
  21. 17:01Responsive Components
  22. 17:40How do we model this?
  23. 19:47Conditional imports are easy!
  24. 20:35Mismatch
  25. 21:18Avoid waterfalls
  26. 22:33import() is always async
~/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.