DEV Community

Discussion on: Understanding Reflow and Repaint in the browser

Collapse
 
hongquan09dth5 profile image
hongquan09dth5

Hello!, Could I have a question? Does the browser reflow for whole page even I only remove or add a node at somewhere on DOM tree or does the browser only reflow or repaint at the particular manipulated DOM?

Collapse
 
monaye profile image
Monaye Win

depends. if the parent node is within the document flow (not position absolute) then, yes, it has to reflow.

Collapse
 
derick1530 profile image
Derick Zihalirwa

Yes It does recalculate the entire page.