~/talk

Removing Dead Code from a Project: A Practical Guide

TalkinRussianat HolyJS 2025 Spring · 2025-04-07..04-08· [developer-experience]
links:none on file
slides:none on file

Practical guide to removing dead code across a JavaScript project: techniques for detecting and eliminating unused entries in package.json, unused modules and imports, and code that still reaches the browser at runtime. Covers tools and processes to find dead artifacts at every layer and how to act on them.

AI-written summary · about

  1. 0:00Introduction
  2. 2:12What is dead code
  3. 8:53Why dead code appears
  4. 10:17Duplicate packages
  5. 16:16Fixing duplicate packages
  6. 18:44Optimizing builds with Terser
  7. 22:16Static analysis
  8. 27:56Dead code in browser
  9. 31:06Dead code in Node.js
  10. 37:26Automating dead code checks
  11. 38:29Dead CSS code
  12. 41:40Q&A
~/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.