YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

Ticket #2528799 (new enhancement)

Reporter


Lajos Koszti
Opened: 02/19/10
Last modified: 02/19/10
Status: new
Type: enhancement

Owner


Gopal Venkatesan
Target Release:
Priority:
Summary: don't fill the ol with loading lis
Description:

I had a problem with the carousel plug-in.
We are using it to display image thumbnails. Some of the galleries are very large (>4-5000 items). We are displaying 5 items in a horizontal carousel and the user can scroll to the previous and next
page. All image is accessible directly, so the user can go directly to the 4000th item. The order of the images is kept, in that case we show the 4000-4005 items in the carousel.
The problem is, that the carousel fills the

OL
element with loading
LI
s. It means, that we have 4000
LI
item, which is generated by JS, which probably won't be finished, because the
browser will freeze during the generation.

My idea is that not generate all of the loading items, only for the previous page. It won't slow down the browser and the animation will still work.

I already have a solution on github. You can find a test case for the issue.

What do you think about that?

Type: enhancement Observed in Version: development master
Component: Carousel Severity: S3 (normal)
Assigned To: Gopal Venkatesan Target Release:
Location: Priority:
Tags: carousel, preformance Relates To:
Browsers: All
URL:
Test Information: