Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6070559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:56:50+00:00 2026-05-23T09:56:50+00:00

I have a page that uses jQuery tabs to tabify a set of HTML

  • 0

I have a page that uses jQuery tabs to tabify a set of HTML tables. We have noticed that the performance switching between tabs can be poor when the tables have large numbers (>1000) of rows.

Following some analysis it turns out that the poor performance is isolated to the $show.removeClass( "ui-tabs-hide" ); line in the tabs’ showTab function.

This was proven with a simple webpage containing a table of 20 columns and 1000 rows in a containing div element.

Suspicious of jQuery, we removed all jQuery from the page and ended up with the following pure JavaScript approach:

<style type="text/css">
    div.tableContainer
    {
        height: 500px;
        width: 800px;
        overflow: auto;
    }
    div.hidden
    {
        display: none;
    }
</style>

<script type="text/javascript">
    function showTable() {
        var x = document.getElementById("theTable");
        x.className = "tableContainer";
    }
</script>

<a href="javascript:showTable()">Show</a>
<div id="theTable" class="hidden tableContainer">
<table>
    <!-- 1000 table rows, with 20 cells each -->
</table>
</div>

The performance is still poor, taking around one second to show the table both in Firefox 5 and IE8.

Can anyone recommend a more performant approach? (other than paging of the table contents, something we might have to resort to but which will require a reworking of a lot of our code)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:56:50+00:00Added an answer on May 23, 2026 at 9:56 am

    The problem is the table more than anything. 1000 TRs * however many TDs is a lot of DOM elements for the browser to re-render.

    The only think I can think of to try is instead of swapping the display css property, try positioning the table off-screen instead to ‘hide’ it.

    Or, alternatively, don’t hide it at all. Leave it on the page and ‘cover’ it with a DIV when you want to ‘hide’ it.

    All that said, this is a gigantic table, so the real solution may be to redesign the page itself. Maybe don’t use tabs on the page, and have users launch each page in it’s own browser tab or something.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page that uses jquery to turn an html table into a
I have a page that uses JQuery UI Tabs and some other bits and
I have a page that uses jQuery to create a number of <input> DOM
I have a page that uses jQuery UI, and calls the datepicker on 2
I have a page that uses jQuery with a small glitch. I managed to
I have a page that uses JQuery UI; in particular the Sortable interaction. The
I have a project in PHP that uses multiple tabs on a single page,
I have a coldfusion page that uses JQuery UI TAB to load another coldfufion
I have a php page that uses php sessions as well as jquery to
I have a page that uses $(id).show(highlight, {}, 2000); to highlight an element when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.