Does visibility affect DOM manipulation performance?

Posted by Chetan Sastry on Stack Overflow See other posts from Stack Overflow or by Chetan Sastry
Published on 2009-02-13T00:15:49Z Indexed on 2010/05/09 5:28 UTC
Read the original article Hit count: 434

IE7/Windows XP

I have a third party component in my page that does a lot of DOM manipulation to adjust itself each time the browser window is resized.

Unfortunately I have little control of what it does internally and I have optimized everything else (such as callbacks and event handlers) as much as I can. I can't take the component off the flow by setting display:none because it fails measuring itself if I do so.

In general, does setting visibility of the container to invisible during the resize help improve DOM rendering performance?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom