Skip to content Skip to sidebar Skip to footer

Why Does Javascript Settimeout Lag When In Another Tab?

I am using setTimeout to run a JavaScript program that will use AJAX to fetch external data and update the content of the page once every 1000 milliseconds, or one second. This wor

Solution 1:

Browsers squelch timer frequencies when tabs aren't active to save battery life for users.


Post a Comment for "Why Does Javascript Settimeout Lag When In Another Tab?"