1. 5
    Solving layout thrashing with debounce
    3m 51s

Solving layout thrashing with debounce

InstructorYonatan Kra

Share this video with your friends

Send Tweet

Layout thrashing happens when we force the browser to measure the DOM multiple times during a synchronous process. This can have major performance consequences. In this lesson we will see the case in which measuring a dynamic value from the DOM can cause layout thrashing - and it can be solved by debouncing the measuring function.