how to prevent javascript event from running again for a certain time after it's run
Asked
Active
Viewed 21 times
0
-
what i need is just the function to prevent the images from changing too fast i took care of the others – Dec 05 '22 at 19:46
-
1You should look into [throttling/debouncing](https://stackoverflow.com/questions/25991367/difference-between-throttling-and-debouncing-a-function). – Andy Dec 05 '22 at 19:47
-
@Andy has found one good duplicate of your question, in your case you're interested in the debounce behavior – Guerric P Dec 05 '22 at 21:51