Codeinwp / Nivo-Slider-jQuery

Nivo Slider - The Most Awesome jQuery Image Slider
http://docs.themeisle.com/article/485-getting-started-with-the-nivo-slider-jquery-plugin
MIT License
1.25k stars 606 forks source link

Speed Bug #210

Open jbasoo opened 12 years ago

jbasoo commented 12 years ago

When left for 5-10 mins on the same page, the slideshow speeds up and captions stop working. I've seen this issue on another slideshow plugin so I'm assuming it's a problem with one of the core jquery functions.

Any help would be very much apreciated, Thanks.

cmah commented 12 years ago

http://stackoverflow.com/questions/6737067/jquery-setinterval-too-fast-when-coming-from-another-tab

This started happening to me recently as well. According to people on Stack Overflow, this a result of the browser makers (Chrome and the later versions of Firefox >= 5.x) trying to save CPU and power consumption. So if you didn't notice it before now, and are only noticing it recently in these specific browers, that's probably why.

Of course it would be nice to have confirmation of this from the Nivo folks, but it seems logical -- it does not seem to be specifically their issue, but rather an issue w/ certain browsers.

jbasoo commented 12 years ago

Kudos to FF & Chrome for saving our CPUs. Hopefully the Nivo folks can do something to accommodate this change. Maybe only activating the slideshow when the window as active and deactivating when window is not active. I might give it a go but will probably get nowhere being a complete javascript/jquery noob.