Runtime jank એ main thread ને block કરતા long task થી આવે છે — એ એકમાત્ર thread જે JS, layout, paint, અને input સંભાળે છે. જ્યારે task ખૂબ લાંબો ચાલે, ત્યારે input process થઈ શકતું નથી, તેથી interaction થીજી ગયેલા લાગે છે અને INP ચઢે છે.
મુખ્ય model: main thread
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 એ user interaction થી next paint સુધીના વિલંબને માપે છે. તેના ત્રણ ભાગ છે: (click કરો ત્યારે main thread વ્યસ્ત), (તમારો handler), અને (પછીનું style/layout/paint).
