Summit '23

Breaking up Long Tasks

About this presentation

Certain tasks on a user interaction can be blocking, giving the user a broken experience, and resulting in a low interaction to next paint(INP) metric score. Some ways to optimise it are: <ul> <li>Keep tasks small and dedicated to what they should do</li> <li>Use Chrome’s scheduler API to schedule tasks for browser</li> <li>Yield important tasks to the main thread</li> </ul> Join Nishu for a walk through of ways to measure and optimise the interaction experience.