Response title
This is preview!
I'm trying to use Malsup's Cycle plugin with jCarousel to allow thumbnails in my pagination to scroll horizontally and it's working fine. The problem is that sometimes the jcarousel plugin doesn't initialize because I believe the pagination is not ready yet. My code looks like this:
Sometimes when the page loads the jcarousel doesn't work, I used setTimeout
to delay its initialization about 2 seconds and it worked every time so I assume it must be because sometimes the pager is not ready. I can live with thesetTimeout
solution for now but I think there must be a better way to handle this.
© 2013 jQuery Foundation
Sponsored by and others.