Performance·Intermediate·Conceptual·1 min read
What's the relationship between INP and the event loop?
Short interview answer
INP is essentially the event loop's main-thread cost model observed from the user's side: input can't be handled while a task runs, microtasks and rendering are scheduled around tasks, and long tasks delay both the handler and the paint. Understanding task scheduling is understanding INP.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.