~/talk

Codemod-ing away 4MB of JavaScript

Talkat React Conf 2019 · 2019-10-24..10-25· [frontend-architecture, web-performance]
slides:none on file

A custom codemod converts hundreds of implicit font references into explicit imports and removes a single import-star that drags in 4.5k icons pulled in by import , shrinking a problematic chunk by about 4MB and eliminating roughly 97% of the unused icon code*; it uses jscodeshift on ASTs, a test-driven transform that handles string and array icon syntaxes, deduplicates imports and avoids naming collisions, and yields ~20% smaller bundle and far fewer parse-and-download bytes.

AI-written summary · about

  1. 0:00Introduction
  2. 2:23Testdriven approach
  3. 6:04Performance Budget
~/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.