JavaScript on the Desktop, Fast and Slow
summary
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
chapters (6)
related talks
41mMake JavaScript Faster
36mPerformance for the long haul
46mHow much performance can you get out of JavaScript?
48mJavaScript in Browser Performance
34mUnderstanding JavaScript Performance
59mProfiling JavaScript Like A Pro
39mYou really don't need all that JavaScript, I promise
28mDecoding JavaScript: Loading Performance —
