DEV Community

Discussion on: Understanding Reflow and Repaint in the browser

Collapse
 
santhoshmp89 profile image
Santhosh Kumar

Hi, Can you explain how does optimized code ran 2 layout where as bad code ran 7 layout, I am assuming that optimized code did batch update, If so please explain little bit.

Collapse
 
a90120411 profile image
Komodo

Batch DOM changes can reduce the reflow operation.