Is having a lot of DOM elements bad for performance?
- by rFactor
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?