Is having a lot of DOM elements bad for performance?

Posted by rFactor on Stack Overflow See other posts from Stack Overflow or by rFactor
Published on 2010-12-24T10:51:14Z Indexed on 2010/12/24 10:54 UTC
Read the original article Hit count: 259

Filed under:
|
|

Hi,

I am making a button that looks like this:

<!-- Container -->
<div>

<!-- Top -->
<div>
    <div></div>
    <div></div>
    <div></div>
</div>

<!-- Middle -->
<div>
    <div></div>
    <div></div>
    <div></div>
</div>

<!-- Bottom -->
<div>
    <div></div>
    <div></div>
    <div></div>
</div>

</div>

It has many elements, because I want it to be skinnable without limiting the skinners abilities. However, I am concerned about performance. Does having a lot of DOM elements refrect bad performance? Obviously there will always be an impact, but how great is that?

© Stack Overflow or respective owner

Related posts about html

Related posts about Performance