~/talk

JavaScript on the Desktop, Fast and Slow

Talkat dotJS 2018 · on Friday, 2018-11-09· [web-performance]

JavaScript on the desktop feels slow because of concrete choices: huge modules parse before any code runs (one dependency drags in a 94,000‑line JSON), lazy requiring or shipping fewer modules fixes that; precompiling with the v8 compile cache cuts cold starts (yarn’s startup drops by a few dozen ms); excessive paint work makes a MacBook Pro hit 30–50% CPU on a single page; microbenchmarks show getElementsByClassName beating querySelector by orders of magnitude; a Windows 95 VM in Electron even runs fine.

AI-written summary · about

  1. 0:00Start
  2. 4:261 Modules
  3. 7:40V8 Code Caching
  4. 10:183 Not all code is equal
  5. 13:48Go Native
  6. 15:15Background
~/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.