jcarousel icon indicating copy to clipboard operation
jcarousel copied to clipboard

JСarousel is VERY SLOW with many items

Open kutsy opened this issue 14 years ago • 9 comments

Jcarousel is very slow with many items, when uses custom start position.

For example: I have 3000 items and when I want to see latest, I uses "start" option and set it to "3000". But JСarousel creates 3000 LI-items, that make my browser SLOW DOWN (I uses Google Chrome).

Can you help me?

kutsy avatar Jun 21 '12 06:06 kutsy

Any ideas?

kutsy avatar Jun 27 '12 08:06 kutsy

well, probably you need to keep only visible items on page and implement ajax items loading on scrolling.

intale avatar Jun 27 '12 08:06 intale

ОК, but how can I setup JCarousel for this?

kutsy avatar Jun 27 '12 09:06 kutsy

use 'jcarouselscroll' event $('.jcarousel').bind('jcarouselscroll', function(event, carousel, target, animate) { // "this" refers to the root element // "carousel" is the jCarousel instance // "target" is the target argument passed to the scroll method // "animate" is the animate argument passed to the scroll method // indicating whether jCarousel was requested to do an animation });

intale avatar Jun 27 '12 09:06 intale

JCarousel has no event 'jcarouselscroll'

kutsy avatar Jun 27 '12 09:06 kutsy

How I can disable LI-creation on Load (when I use custom "start" position) ?

kutsy avatar Jun 27 '12 09:06 kutsy

JCarousel has no event 'jcarouselscroll'

well, this is from documentation from main page. So it must present.

intale avatar Jun 27 '12 09:06 intale

How I can disable LI-creation on Load (when I use custom "start" position) ?

Could you please check documentation firstly? Also, no one can stop you from changing the plugin internally :)

intale avatar Jun 27 '12 09:06 intale

JCarousel has no event 'jcarouselscroll'

well, this is from documentation from main page. So it must present.

I uses version 0.2, not 0.3

kutsy avatar Jun 27 '12 10:06 kutsy