10KB or Bust: The Delicate Power of Webpack and Babel
summary
LinkedIn’s desktop page takes about 1.3 minutes to load on 2G while a similar site on Preact completes in ~12 seconds, so swapping frameworks matters: Preact is ~3.5 KB vs React ~32 KB and Ember ~144 KB. Practical tactics include compile twice with Babel (module type="module" for modern browsers), tree-shake lodash by importing specific functions (saves ~60 KB), and use module concatenation in Webpack (examples drop bundles from ~70 KB to ~37 KB).
AI-written summary · about
chapters (10)
- 0:00Start
- 14:01QUESTION YOUR FRAMEWORK
- 20:24COMPILE YOUR CODE TWICE WITH BABEL
- 32:41SCOPE HOISTING
- 37:37SERVER TIMINGS API
- 38:01COMPRESS YOUR RESPONSES
- 38:33LINKEDIN'S PERFORMANCE INCREASE WITH BROTLI
- 38:54COLD START
- 40:35BINARY BYTE CODE
- 40:50HACKER NEWS CLONE
related talks
52m10KB or Bust: The Delicate Power of Webpack and Babel
31m10KB or Bust" The Delicate Power of Webpack and Babel"
30m10KB or Bust: The Delicate Power of Webpack and Babel
58m10KB or Bust: The Delicate Power of Webpack and Babel
36mPerformance for the long haul
51mWhen JavaScript Bytes
22mPerformance Empathy
30mWebpack – The React Parts
