Reputation: 1211
I'm using JCarouselLite on my website www.peach-designs.com and my problem is when it loads in Chrome, the entire page doesn't load - just the navigation bar, rather than the image scroller I have. When I click 'Home on the navigation bar, everything displays fine (index.php), but not the initial load (which should ideally be index.php shouldn't it).
I have had advice that the problem is JCarousel, my other problem is, I have JCarouselLite with no control buttons or anything, and the code looks completely different to JCarousel. Is there anybody who has encountered this problem with JCarouselLite who can help?
Hope you can help,
Kind Regards,
Snakespan
Upvotes: 0
Views: 2129
Reputation: 11
Try to use
$(window).load()
rather than
$(document).ready()
, it works for me!
Upvotes: 1
Reputation: 24488
Full working code after I applied Kainnan fix:
$(window).load(function () {
$("#prodCarousel").jCarouselLite({
auto: 7000,
speed: 1500,
scroll: 4,
visible: 4
});
});
Upvotes: 0