Skip to content

Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

Chapter 08

Observers

Asynchronous callbacks for things the page would otherwise poll for: visibility, size, and DOM mutations, and where each observer's callback runs in the event loop.
  1. 010How does IntersectionObserver work, and why use it over scroll listeners?medium
  2. 020What does ResizeObserver report, and what is the loop error?medium
  3. 030How does MutationObserver batch changes?medium
  4. 040When do observer callbacks run compared with events, microtasks, and rendering?hard