Skip to main content

Bug Tracker

Side navigation

#6149 closed bug (invalid)

Opened February 22, 2010 06:43PM UTC

Closed February 22, 2010 07:14PM UTC

Last modified February 22, 2010 07:54PM UTC

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.

Attachments (0)
Change History (2)

Changed February 22, 2010 07:14PM UTC by john comment:1

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.

Changed February 22, 2010 07:54PM UTC by csulok comment:2

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.