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


Hey Aaron,

when i checked your website, you seemed to have removed the slider. so can’t really pinpoint the problem.

but what i think is happening is, when the tabs are hidden, the images inside it don’t get loaded

so the image widths wouldn’t be calculated on windows load and hence the slide show doesn’t work

but when the tab is open, the images would be loaded on windows load.

what i would suggest is you can initialize the slide show once the tab is opened or use a script which checks if all the images inside the dom are loaded before firing a callback.

i’ve made one for my personal site, you can use that if it fits your bill,