PyWebIO
PyWebIO copied to clipboard
JavaScript timer not running correctly when PyWebIO app is in the background.
I have a JavaScript timer in my PyWebIO app that, when is left in the background for a while (not active tab in user's browser), and then is made active again after a while, the countdown timer is glitching and is inaccurate.
This looks like a browser limitation, if you want to use js timing, please use the time difference instead of accumulating/subtracting a counter variable