~/talk

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

Talkat jsDay 2018 · on Thursday, 2018-05-10· [web-performance, javascript]
slides:none on file

Concrete knobs and their payoffs: swap to Babel preset-env, set modules false and let Webpack tree-shake lodash to cut 73.3KB → 11.1KB, enable scope-hoisting/module-concatenation to roughly halve bundles, and use Brotli plus gzip for API responses. Aim to land the critical shell initial page under 10KB with code-splitting and service-worker prefetching. Measured examples: a LinkedIn desktop load hits 1.3 minutes on 2G vs Treebo ~12s, Preact ≈0.1s, Vue ≈0.7s, Ember ≈5s. Use image skeletons and disable prod source maps.

AI-written summary · about

  1. 0:00Introduction
  2. 3:18We are all trying our best
  3. 3:53We are all just trying to survive
  4. 4:11Know your audience
  5. 5:34Lowpower phones
  6. 8:31The bloated internet
  7. 12:35Bangalore vs Silicon Valley
  8. 13:02Feeling bad about yourself
  9. 13:38Choosing a framework
  10. 16:38Babel Presets
  11. 19:14Type equals module
  12. 20:40Tree shaking
  13. 23:39Tree shaking is a silver bullet
  14. 28:06Node MV vs Production
  15. 28:51Code Splitting
  16. 31:19Source Maps
  17. 32:44Scope Poisoning
  18. 34:44Image skeletons
  19. 39:32Summary
  20. 42:25Functions
  21. 43:10Server timings API
  22. 44:09Resizing API responses
  23. 44:57broadly
  24. 46:16cold start
  25. 47:22future computers
  26. 48:04prepack
~/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.