views:

85

answers:

1

Hi I was wondering if there is a limit to the number of divs that are allowed on a web page?

For example will Internet Explorer start to choke when it has to render a webpage with a thousand divs?

+1  A: 

There are two things to consider. Memory is one, where DOM nodes take up a huge amount of space. The other is CPU time needed to re-render all of these nodes when something changes. The threshold of smooth rendering depends on the engine used. In my experience, IE falls far behind, starting to choke after several hundred. Firefox can take several thousand, and it's about the same (and a little better) for WebKit browsers like Chrome.

Delan Azabani
Thanks for your input! its hard to find this kind of information online.
Sau