What's the difference between reflow and repaint?

Posted by Jon Raasch on Stack Overflow See other posts from Stack Overflow or by Jon Raasch
Published on 2010-03-30T22:59:46Z Indexed on 2010/03/30 23:03 UTC
Read the original article Hit count: 303

Filed under:
|
|
|

I'm a little unclear on the difference between reflow + repaint (if there's any difference at all)

Seems like reflow might be shifting the position of various DOM elements, where repaint is just rendering a new object. E.g. reflow would occur when removing an element and repaint would occur when changing its color.

Is this true?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about Performance