~/talk

How writing just one import the wrong way slows down your website

Talkat Voxxed Days Ticino 2025 · 2025-01-16..01-17· [javascript, web-performance]
links:none on file
slides:none on file

Modern bundlers rely on tree shaking but one wrong import can pull an entire library into the bundle: importing lodash the ES module way here unexpectedly adds ~24 KB because lodash exports CommonJS, while cherry‑picking like lodash/isString reduces that to 0.21 KB. Measured bundle before/after confirms the delta. Use tools like the import-cost editor plugin and BundlePhobia to estimate impact and verify that the optimized import pattern actually keeps bundles small.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Tree shaking importance
  3. 4:18Bundlers and bundle size
  4. 8:11Tree shaking myths
  5. 11:23Lodash import pitfalls
  6. 13:10Verifying tree shaking
  7. 15:19Real-world impact
  8. 16:44Conclusion and Q&A session
~/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.