When using jQuery to load HTML into an element, I am seeing very poor performance in IE. Chrome is not showing any performance problems. Changing the IE browser mode does not appear to improve the performance.
When running the profiler in IE, I see that most of the time is being spent in the RegExp.test
function.
HTML:
<div id="content"></div>
JavaScript:
var htmlString = <div>...Lots and lots of content...</div>
$('#content').html(htmlString);
- jQuery version: 1.9.1
- IE version: 9