In the project I'm working on, we're programaticaly adding nodes client side; for the most part everything works fine, but in some extreem circumstances, we may need to load around 3000 or so nodes. The trouble with this is that eventualy IE displays a 'Stop running this Script?' dialog to the user. After looking at the code, it seems like the slowest part of the process is calling the parentNode.add(childNode) method, which takes around 20-60ms per node (the rest of the code per node only takes about 5-10ms on top of this).
Are there any tips/suggestions you could give me to improve performance here, or at least prevent that IE dialog from being displayed?
Are there any tips/suggestions you could give me to improve performance here, or at least prevent that IE dialog from being displayed?