Runtime jank มาจาก long task ที่บล็อก main thread — thread เดียวที่จัดการ JS, layout, paint, และ input เมื่อ task รันนานเกินไป input จะถูกประมวลผลไม่ได้ ทำให้การโต้ตอบรู้สึกค้าง และ INP พุ่งสูงขึ้น
โมเดลแกนกลาง: main thread
text
Main thread: [ event handler 180ms ] input queued... rendered ─▶ INP = time until next paint
└── a "long task" (>50ms) blocks everything, including responding to the click
INP วัดความล่าช้าตั้งแต่การโต้ตอบของผู้ใช้ไปจนถึงการ paint ครั้งถัดไป มันมีสามส่วน: (main thread ยุ่งอยู่ตอนคุณคลิก), (handler ของคุณ), และ (style/layout/paint หลังจากนั้น)
