Govind Mantri
Govind Mantri

Reputation: 803

How many DOM elements can a browser handle

I'm using svg with over a 6000 elements I want to increase add a few thousand DOM element in my current webpage. But I noticed that whenever I'm trying to manipulate like zooming in/out (using plug-ins) my page is getting very slow to response. I would like to know the maximum capacity of a browser to handle DOM does it depends on machine configuration?

Upvotes: 0

Views: 1141

Answers (1)

Maneesh
Maneesh

Reputation: 144

There is no such standard. The smallest number is the best. And it depends from browser to browser. Older browsers are not that good in rendering complex dom structures. Even simple events such as "mouseover" and "mouseout" may be a hassle. -- So the ideal is as minimum as it can be. If the browser is not up-to-date you need to compromise look & feel on the altar of efficiency.

Upvotes: 2

Related Questions