I am displaying different images every second infinitely in a loop.
Is there any efficient way (other than setInterval) to run a particular block of code eve
setInterval