The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Slideshow not working in toggle tabs Re: Slideshow not working in toggle tabs

Chris Coyier

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.