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 648915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:53:06+00:00 2026-05-13T21:53:06+00:00

I have a page where I load a table of information using ajax. Once

  • 0

I have a page where I load a table of information using ajax. Once the table is loaded I use jQuery to wire up some event handlers on the table’s rows.

From that page it’s possible for the user to refresh that table. My jQuery code to refresh the table looks something like this:

    $.post("/myurl", { id: 0}, 
        function (d) 
        { 
            $("tblWrapper").html(d);

            //Wire events
            $("table tr", $("tblWrapper")).click(function (e) { ... });
            ...etc
        }, "text");

I’ve noticed that after doing this several times that the page will respond very sluggishly when I try to do any scrolling or animation in IE8.

My question is, what am I doing wrong, that makes it get slower and slower? Can I clean up the old html/event handlers before replacing it with new html and new handlers? I had thought JS engine might do that automatically. Maybe it does and its just slow to do the cleanup, it I don’t know.

I’ve noticed CPU time on IExplorer goes to like 50%.

I’d greatly appreciate any help.

  • 1 1 Answer
  • 2 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-13T21:53:07+00:00Added an answer on May 13, 2026 at 9:53 pm

    I’m not sure if this is the problem or not, but do you keep adding the same rows over and over? It could be getting slower because there are more and more rows in the table.

    You can do something like $(“table tr”).remove() to clear the rows.

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

Sidebar

Related Questions

I have page where I load different videos.I use jw player as player if
I have a dynamically built table on the page load of my web page
I have a timer every 20 seconds using setInterval, it uses jQuery's ajax function
I have a datagrid to display some information from a SQL table, and then
I have a page which load a 500 mb xml file and parses the
Is there a way to have lightbox on page load?? Say like when the
I have a select dropdownlist with 1 item selected at page load in html.
I'm stuck trying to solve this. I'm plotting some information that I have in
I have an ASP page which consist of a table that is generated with
So I have some information I show a user about their account. However, an

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.