I have made a carousel and using javascript setInterval() function for rotate image with fixed interval in carousel. Here's the script that i had used
var timeOut = 4000;
function showSlide() {
//....script for showing image
}
function pauseSlide() {
setInterval(function(){showSlide();}, timeOut);
}
jQuery(document).ready(function() {
pauseSlide();
});
Now the problem is when i have change the browser tab and after few minute back again to carousel browser and what i seen carousel running too faster rather than default time interval, images going to change fast suppose 0 time interval. Please help me how can i sort out this.