How to make JavaScript run at normal speed in Chrome even when tab is not active?
问题 I've noticed a problem with my webapp - when Chrome active tab isn't set to my app, Chrome stops running my JS code until I open tab again. I guess it does to save CPU cycles. Else if you've 20 tabs open and each has code running, it will get slow quickly. This is all good, but my app requires that it keeps running in the background. It updates graphs in real time and analyses data every few seconds. If I move to another tab, graph updating and analysis stops (or becomes very slow - 1 second