Still the clearest explanation of the event loop, eleven years on
Lena Fischer@lenafischer
I send this to every front-end hire in their first week. Ten minutes of a visual stack and queue does more than any amount of prose about microtasks, and it is why our team can reason about why that setTimeout(0) "fixed" the layout bug.
Written by
Lena Fischer
Front-end engineer on a design systems team. I maintain the token pipeline and the component library four product teams build on. Strong opinions about focus rings, colour contrast, and the fact that most "theming" problems are really naming problems. CSS is a real language and I will keep saying so.
Ten minutes of a visual stack and queue beats any amount of prose, which is the same reason we teach frame timing with a timeline capture instead of a diagram.