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.

3 changes to this page · 8 site-wide changes · first saved 21 May 2026

  1. 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.

  2. 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.

  3. 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.

  1. Replace the staff byline with AI-drafted and review status

    Touched 92 pages.

  2. Rewrite site prose in plain language; simulators, homepage, About, footer

    Touched 579 pages.

  3. add math and history, more content

    Touched 183 pages.

  4. new content and pages

    Touched 144 pages.

  5. Update components, cheat sheets, and structure

    Touched 444 pages.

  6. improve content

    Touched 405 pages.

  7. add more sims

    Touched 28 pages.

  8. 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.svelte
  • src/lib/sims/eventLoop.ts
  • tests/sims/eventloop.test.ts

The descriptions are the notes written when each change was saved, unedited, so older ones can be short.