Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#6149 closed bug (invalid)

showing table with many large # of rows takes excessive amount of time

Reported by: csulok Owned by:
Priority: Milestone: 1.4.2
Component: effects Version: 1.4.1
Keywords: Cc:
Blocked by: Blocking:

Description

testpage: http://www.chemaxon.com/jquery-bug2.html relevant discussion: http://datatables.net/forums/comments.php?DiscussionID=1389&page=1#Comment_6754

This seems to affect 1.4.1 and 1.4.2, didn't test more.

Change History (2)

comment:1 Changed 8 years ago by john

Component: unfiledfx
Resolution: invalid
Status: newclosed

It really doesn't matter what jQuery does - if you're setting display: none on thousands of elements it's going to take a while. Speaking from experience (and from the other popular jQuery tablesorter plugin) it's best to simply remove the rows from the page and re-insert them again later. It ends up being much faster than trying to hide them all individually.

comment:2 Changed 8 years ago by csulok

not that it really matters but display:none was set on 1 element, the table and i don't think that's what caused the delay because that's how it arrives in the html code, but actually showing it after processing, which is again, only 1 element but also, with only 25 rows and 6 columns. and sadly removing and reinserting them kinda goes against datatables.

Note: See TracTickets for help on using tickets.