javascript dom methods running slow - by JeffreyHWright

Status : 

  External<br /><br />
		This item may be valid but belongs to an external system out of the direct control of this product team.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

ID 804393 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 10/2/2013 9:18:18 PM
Access Restriction Public


I haven't tested any beyond these two, but it seems that the removeChild and appendChild functions are running about 10x slower in ie11 than in Chrome.  I've tried on two different machines and get similar results.  I put the test I created on jsfiddle.

Sign in to post a comment.
Posted by Microsoft on 4/4/2016 at 9:41 AM
We've moved! This issue is now being tracked at
Posted by Pakastin on 12/29/2015 at 8:58 AM
> But even with reordering it's slow...

..I meant even _without_ reordering it's slow
Posted by Pakastin on 12/29/2015 at 8:55 AM
Seems to be valid in Edge as well: appendChild/insertBefore are over 10 times slower in Edge than in Chrome/Safari/Firefox.

Here is a good benchmark for the issue:

Especially sorting is really slow (it will reorder DOM elements). But even with reordering it's slow when filtering by search (appending/removing elements):
Posted by Microsoft on 10/10/2013 at 12:03 PM
Thank you so much for the feedback.

Unfortunately, we are not able to address this feedback in our upcoming release. We will consider your feedback for a future release. We will keep this connect feedback bug active to track this request.

Every piece of feedback we receive is important to us and helps us improve the quality of Internet Explorer.
We continue to welcome more feedback, so please don't hesitate to report other ways that we can improve Internet Explorer.

Best regards,
The Internet Explorer Beta Team
Posted by JeffreyHWright on 10/7/2013 at 3:06 PM
I've updated the script to run fewer iterations and is removing and adding less html while still seeing the same timing differences.
Posted by Microsoft on 10/3/2013 at 11:06 AM
Mr Wright,
Great feedback!

Although I'm definitely seeing differences in loading times between browsers, I am also seeing unresponsive script dialogs in IE, Firefox and Chrome. Also, I'm sporadically seeing browser crashing in IE and Firefox. I'm wondering if you were also seeing this behavior? It is not 100% of the time but it is happening enough that any speed comparisons that I run are not valid.

Could you revisit your JSFiddle script and check for scripting issues(ie crashing browsers/unresponsive script messages)?

We are going to investigate your feedback further either way because I do see enough of a difference to warrant more testing. But if the script is somewhat unstable in more than just IE, it will be harder to determine resolution.

Best regards,

Corey Wilson - The Internet Explorer Team