~/talk

10KB or Bust: The Delicate Power of Webpack and Babel

Talkat Codemotion Amsterdam 2018 · 2018-05-08..05-09· [javascript, web-performance]
slides:none on file

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

  1. 0:00Start
  2. 14:01QUESTION YOUR FRAMEWORK
  3. 20:24COMPILE YOUR CODE TWICE WITH BABEL
  4. 32:41SCOPE HOISTING
  5. 37:37SERVER TIMINGS API
  6. 38:01COMPRESS YOUR RESPONSES
  7. 38:33LINKEDIN'S PERFORMANCE INCREASE WITH BROTLI
  8. 38:54COLD START
  9. 40:35BINARY BYTE CODE
  10. 40:50HACKER NEWS CLONE
~/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.