~/talk

The Cost of JavaScript

slides:none on file

JavaScript is now the costliest page resource: median site ships 360 KB compressed (over 1 MB uncompressed) and popular sites send megabytes (CNN 2.6 MB, Verge 3.8 MB, Facebook ~6 MB across 292 requests), causing slow TTI (median ~9s). Browsers stream and parse once ~30 KB; splitting into ~50 KB chunks and lazy-loading routes/components reduces main-thread work. Targets and wins: aim for 5s TTI on Moto G4, code caching cuts parse/compile 20–40%, Twitter/Tinder cut TTI ~50%, Tokopedia shrinks 320 KB→37 KB. Use Lighthouse, DevTools long-tasks, Webpack bundle-analyzer, source-map-explorer, coverage, ESLint no-restricted-imports, and WebPageTest.

AI-written summary · about

  1. 0:00Intro
  2. 1:57NETWORK / COMPUTE
  3. 2:40EFFECTIVE CONNECTION TYPE
  4. 4:59HIGHEST SELLING PHONES
  5. 6:12BEST BUY TOP PHONES
  6. 8:46PAGE LOAD METRICS
  7. 9:19TIME TO INTERACTIVE
  8. 12:23LONG TASKS IN DEVTOOLS
  9. 14:10JAVASCRIPT CAN BE A BOTTLENECK
  10. 15:57SCRIPT STREAMING
  11. 17:24COST OF JAVASCRIPT
  12. 19:11MAIN THREAD PARSE/COMPILE
  13. 21:00JS PARSING UPDATES
  14. 21:59CODE CACHING IN V8
  15. 26:15LAZY-LOAD ON VISIBILITY
  16. 26:41PROGRESSIVE REHYDRATION
  17. 30:40DISALLOW LARGE IMPORTS
  18. 33:39I JUST FIXED THE SITE. WHY DID YOU RUIN IT?
~/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.