0

I show you a trivial example:

setInterval (function() {
 player.money += buildings.quantity * buildings.production
 document.getElementById("money").innerHTML = player.money
}, 1000)

when I change tab or minimize the window, it is as if the execution is blocked, is this normal?

  • [Very many answers](https://www.google.com/search?q=setinterval+OR+setTimeout+tab+site%3Astackoverflow.com) – mplungjan Mar 09 '22 at 15:46

0 Answers0