Setinterval Doesn't Slow Down On Inactive Tab
This is perhaps the opposite of a very common problem: When you use setInterval on one tab and you switch to another, the interval decreases significantly (i.e. slow down). This is
Solution 1:
Since javascript is a runtime compilation code( Compiled by browser at runtime, browser has to work on it). When you navigate to other tab, the page has it's own scripts and browser has to compile that code as well. So Browser assign a high priority to scripts in active tabs and scripts in remaining tabs are assigned with a lower priority. So it will affect scripts on inactive tabs. However if you have a machine with higher amount of RAM available, this problem will not occur.
Post a Comment for "Setinterval Doesn't Slow Down On Inactive Tab"