Home › Forums › JavaScript › Slideshow not working in toggle tabs › Re: Slideshow not working in toggle tabs
January 21, 2013 at 4:59 pm
#121767
Chris Coyier
Keymaster
What you might want to try is to wait to initialize the slider until after the window is loaded. It looks like the widths of the list items in the slider are programmatically calculated. That calculation could be wrong if the image isn’t done loading yet. So it’s best to wait until it is loaded.
$(window).load(function() {
// load slider here
});
Or, make sure all those images have proper width/height attributes on them so the slider list items can be calculated correctly right away.