1. 4
    Solving layout thrashing by caching measured value
    2m 21s

Solving layout thrashing by caching measured value

InstructorYonatan Kra

Share this video with your friends

Send Tweet

Layout thrashing is 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 static value from the DOM can cause layout thrashing - and it can be solved by caching the value.