jQuery/JavaScript: My recursive setTimeout function speeds up when tab becomes inactive
问题 I've got an odd little dilemma in this jQuery slideshow plugin that I am building. It's nothing fancy and the code I have written to date is working great however I have noticed that when I leave the site running and switch to a new tab and continue browsing the web in this other tab (Chrome for Mac in my case) that when I return to my site, the setTimeout call seems to have speed up and instead of waiting for the timer to finish the fire the event, it fires continuously. Here is my