Tasks, microtasks, queues and schedules
Listed inThe Event LoopJavaScripton
The clearest explanation of the event loop there is, with a step-through animation of the queues.
The language and its runtime model. Frameworks come and go; closures, the event loop, and modules do not.
9 articles
Listed inThe Event LoopJavaScripton
The clearest explanation of the event loop there is, with a step-through animation of the queues.
Listed inThe Event LoopJavaScripton
Tasks, microtasks, rendering, and why a single long function freezes the whole page.
Listed inAsynchronous JavaScriptJavaScripton
Promises, async/await, concurrency with `Promise.all`, and the error paths people forget until production.
Listed inES ModulesJavaScripton
Static imports, live bindings, dynamic `import()`, and how module shape decides what a bundler can tree-shake.
Listed inFetch and HTTP ClientsJavaScripton
The Fetch API, request cancellation with AbortController, error handling, and what a "failed" response actually means.
Listed inDOM ManipulationJavaScripton
Querying, creating, and updating nodes — and why every framework exists to stop you doing it by hand.
Listed inSyntax and Basic ConstructsJavaScripton
Types, coercion, destructuring, and the modern syntax the rest of the ecosystem assumes you already read fluently.
Listed inPrototypes and ClassesJavaScripton
The prototype chain, `this` binding, and what `class` is actually sugar for.
Listed inScope and ClosuresJavaScripton
Lexical scope, hoisting, and the captured-variable behaviour behind most stale-state bugs in hooks.