Skip to content

Interaction lifecycle

Input → wait for main thread → process handler → paint next frame.

graph LR
  I[User input] --> Q[Queue]
  Q --> M[Main thread]
  M --> H[Handler]
  H --> P[Paint next frame]
  P --> D[INP measured]
  style M fill:#FFEBEE
  style D fill:#E8F5E9