Home › Forums › JavaScript › Slideshow not working in toggle tabs › Re: Slideshow not working in toggle tabs
January 26, 2013 at 6:48 am
#122384
hackerone
Member
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,