Overcoming browser throttling of setInterval executions

To preserve device battery and reduce unwanted CPU consumptions, browsers throttle the execution of callbacks passed to the setInterval method, whenever the webpage becomes hidden. This happens whenever the browser window is minimized, the browser tab is changed and in a few other special cases.

Read more on this Medium article.

View this Demo page

FavoriteLoadingAdd to favorites
Spread the love

Author: Shahzad Khan

Software developer / Architect