Answer the question
In order to leave comments, you need to log in
Does setInterval work without pause?
Hello!
For some reason, setInterval works for me with a break of 1000ms, although 10000 is specified,
at first everything works fine, and then it crashes and I don’t know why
I know about the queue in js and if it’s because of it, then how to solve this problem correctly
I use setInterval for auto scrolling of the slider
I also tried it and it also does not work
setInterval(function(){
setTimeout(nextSlide, 10000);
}, 5000);
Answer the question
In order to leave comments, you need to log in
Maybe the nextSlide function itself slows down? Did not try to output to the console how it will work ???
If the console outputs as expected, then the function is slowing down.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question