title: Jquery very slow in IE7
body: <p><strong>Summary</strong></p>
  
  <p>jquery is used to retrieve search results via the get() call. When rendering the bulk of results there is no problem, but then when rendering part of the results, IE7 consistently hangs for 5-30 seconds before rendering.</p>
  
  <p><strong>Problem</strong></p>
  
  <p>The <code>get()</code> call in jquery successfully executes. There is no <code>eval()</code> or urlencode or decode on the data, as the data is html. A large content area is replaced with the data via</p>
  
  <pre><code>$('#content').html(data);
  </code></pre>
  
  <p>Within <code>#content</code> there are a couple hidden divs that contain content to be moved to another areay outside <code>#content</code>. (these are search results retrieved via ajax, and the breadcrumb needs to be updated in another section)</p>
  
  <pre><code>$('#breadcrumb').html($('#content #breadcrumbcontainer').html());
  </code></pre>
  
  <p>The above works very well in Firefox and other browsers.</p>
  
  <p>Testing on a Vista machine with IE 7.0.6001.18000 without script debugger was fast and normal in all cases.</p>
  
  <p>Testing on XP with 7.0.5730.11 with MS script debugger was slow on a number of occasions. I can only guess at this point - it looks like it has something to do with </p>
  
  <ol>
  <li>script debugger being installed</li>
  <li>invalid XHTML strict</li>
  <li>caused by some obscure timing - the fix I've seen suggested here using <code>setTimeout()</code></li>
  <li>perhaps jquery queue is needed?</li>
  <li>some combination of the above</li>
  </ol>
  
  <p>More code can be provided, but it's really confounding that the performance is so bad (30 seconds rendering) when it's 1 second in IE7 without script debugger.</p>
  
  <p>Any suggestions as to the cause would obviously be appreciated. </p>
  
  <p>-- update --</p>
  
  <p>The tskmanager shows now CPU usage for iexplorer.exe while it is idling.
  Just hangs, like there's a timeout.  </p>
  
  <p>-- update two --</p>
  
  <p>It has been confirmed that IE7 without microsoft script debugger that IE7 is slow </p>
  
  <blockquote>
    <p>Range: 4 seconds to 2:19 
    Average: 33 seconds 
    Median: 18 seconds 
    Standard deviation: 37 seconds</p>
  </blockquote>