title: JQuery UI tab slow response with 500+ row table
body: <p>I am currently running into an issue with JQuery UI tabs causing the browser to slow down a lot when I load a large table into a tab.  I am running JQuery 1.4.2 and JQuery UI 1.8.4.  Clicking anywhere within the tab with this large table causes the CPU to jump up to 50%.  The slowness is more apparent if you have a column of checkboxes to click on.  But it is also apparent when you attempt to highlight any text in the table.</p>
  
  <p>So far I have tested the following:</p>
  
  <p>1) JQuery UI tabs with a 500 row table.</p>
  
  <p>2) JQuery UI tabs with 500 rows of data (replaced table with p and span tags).</p>
  
  <p>3) Just a 500 row table</p>
  
  <p>Case #1 is the slowest.<br>
  Case #2 is more responsive, but the table layout is now gone.<br>
  Case #3 is the fastest with no lag time at all.</p>
  
  <p>I've tried using the FireBug profiler to see what could be executing, but it returned with no activity.  At this point I am stumped.  </p>
  
  <p>Here is a code snippet for Case #1:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
      &lt;html&gt;
      &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
      &lt;title&gt;Tabs + 500 row table&lt;/title&gt;
  
      &lt;script type="text/javascript" src="js/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/jquery-ui-1.8.4.custom.min.js"&gt;&lt;/script&gt;
  
      &lt;link href="css/jquery-ui-1.8.custom.css" type="text/css" rel="stylesheet"/&gt;
  
      &lt;script type="text/javascript"&gt;
      $(document).ready(function() {
        $("#tabs").tabs();
      });
      &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
  
      &lt;div id="tabs"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#tabs-1"&gt;500 Rows&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#tabs-2"&gt;Proin dolor&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#tabs-3"&gt;Aenean lacinia&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;div id="tabs-1"&gt;
  
  &lt;!-- Insert Large data table here.  500+ rows --&gt;
  
  &lt;!--
    Small sample starter table.  Pasting a 500 row table here would be too much.  
    &lt;table&gt;
      &lt;tr&gt;
         &lt;td&gt;&lt;input type="checkbox"/&gt;&lt;/td&gt;
         &lt;td&gt;column 2&lt;/td&gt;
         &lt;td&gt;column 3&lt;/td&gt;
         &lt;td&gt;column 4&lt;/td&gt;
         &lt;td&gt;column 5&lt;/td&gt;
         &lt;td&gt;column 6&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  --&gt;
  
  &lt;/div&gt;
    &lt;div id="tabs-2"&gt;
      &lt;p&gt;Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.&lt;/p&gt;
    &lt;/div&gt;
    &lt;div id="tabs-3"&gt;
      &lt;p&gt;Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.&lt;/p&gt;
      &lt;p&gt;Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>