JavaScript event loop simulator / Change history
Change history
Every change made to JavaScript event loop simulator, newest first, from the site's version history. Each date is the day the change was saved.
-
Add tests for eleven more simulators
The same change touched 10 other pages.
Details
Event loop (the page's code run in Node), JSON vs protobuf and gRPC vs REST (Google's protobuf runtime, msgpack, RFC 7541 C.3/C.4 and the hpack decoder), isolation levels (PostgreSQL's documented behaviour), decision tree (scikit-learn), CORS (300 random cases in Chromium), DNS (zone data read directly), TCP (RFC 9293 states, RFC 6298 timers), TCP vs UDP, load balancing (Erlang C) and ACID. CI installs the Python references and Chromium.
-
Event loop simulator: rebuilt with a model checked against Chromium and Node
Details
Eight real JavaScript programs, from the classic setTimeout-vs-Promise question to async/await and requestAnimationFrame, stepped through a model of the HTML event loop: call stack, timers and task queue, microtask checkpoints and the rendering step. Each program was run in Chromium and Node.js and printed the same output as the model. The article covers tasks and microtasks, a generated step-by-step trace, async/await, timer clamping, rendering, blocking, the Node.js phases and nextTick, with a FAQ.
-
add new sims
The same change touched 7 other pages.
Site-wide changes that also touched this page (8)
Changes made to more than 25 pages at once, such as a new layout, a wording pass or a move to a new folder.
-
Replace the staff byline with AI-drafted and review status
Touched 92 pages.
-
Rewrite site prose in plain language; simulators, homepage, About, footer
Touched 579 pages.
-
add math and history, more content
Touched 183 pages.
-
new content and pages
Touched 144 pages.
-
Update components, cheat sheets, and structure
Touched 444 pages.
-
improve content
Touched 405 pages.
-
add more sims
Touched 28 pages.
-
add more content, fix shares
Touched 319 pages.
What counts as a change to this page
Any saved change to these files, including when they lived in an older folder:
src/routes/simulators/event-loop/+page.sveltesrc/lib/sims/eventLoop.tstests/sims/eventloop.test.ts
The descriptions are the notes written when each change was saved, unedited, so older ones can be short.