Ticket #7898 (closed enhancement: invalid)
replaceWith() terribly slow in IE8
|Reported by:||info@…||Owned by:|
When using $('elm').replaceWith(string) where elm has multiple nested children (need not be a lot) it took IE8 10 seconds to perform its task.
After having modified the replaceWith() method in the jQuery source:
- jQuery( this ).remove();
+ jQuery( this ).empty().remove();
It took IE8 less than a second to complete its task, like in Firefox 3.6