title: IE too slow when adding a lot of HTML to the DOM via Javascript
body: <p>I have a page where we are using a Kendo UI template to generate a bunch of HTML to insert into the DOM.  We are talking 2+ million bytes.  All the other browsers will display this in about 2 to 3 seconds or so.  I'm already avoiding jQuery and setting the innerHTML via the document.getByElementId call.  It appears that the slowest part is regexp.test calls that IE makes.  Is IE vaidating that all the start/end tags match?  If so, is there a way to tell IE to skip this check to speed things up (i.e. "Trust me")?  I've already reduced the HTML needed to as small as possible already, so that is really no longer an option.  Also, the data I'm showing isn't even the largest dataset yet, so I know it'll get a lot bigger.  Does anyone have any ideas?</p>
  
  <p>Update:</p>
  
  <p>This is the current code I'm using:</p>
  
  <pre><code> var resultHtml = kendo.template(templateHtml, { useWithBlock: false })(currentPage.ViewModel);
   resultHtml = resultHtml.replace(new RegExp("\&gt;[\n\t ]+\&lt;", "g"), "&gt;&lt;"); // Get rid of whitespace
   document.getElementById("tblData").innerHTML = resultHtml;
  </code></pre>
  
  <p>In IE, this ends up taking about 10 seconds to show with 2.5 million characters being generated.  In Chrome/FireFox/Opera, this takes about 2 to 3 seconds.</p>