The JavaScript Event Loop

By Thomas Hunter II

Elevator Pitch

Discover the JavaScript Event Loop, how it is built upon a Stack, Heap, and Queue, and how to break up heavy workloads to keep your application rendering at 60 FPS. While the Event Loop is typically an abstract concept, we’ll step through code synchronized with diagrams to make it more concrete.

Description

Discover the JavaScript Event Loop, how it is built upon a Stack, Heap, and Queue, and how to break up heavy workloads to keep your application rendering at a smooth 60 FPS. We’ll take a dive into some browser tools to visualize the execution of our code, examine a real-life interview question based on these concepts, and also explore how to offload CPU-intensive work to another JavaScript instance.

Notes

Slides: https://thomashunter.name/presentations/javascript-event-loop-v5

Here’s a list of other talks I’ve given: https://thomashunter.name/talks

I’ve given this talk a few times, revising it after each talk.