Already using webworkers for ticking (settimeout) to deal with throttling in inactive tabs. It works ok on the desktop. But on mobile, when the screen is locked, I have no idea what can be done.
It kind of worked too but I'd be a liar if I said it was better (clocks are unreliable AF) than just letting some backend handle that kind of stuff.