PyWebIO icon indicating copy to clipboard operation
PyWebIO copied to clipboard

JavaScript timer not running correctly when PyWebIO app is in the background.

Open pstatonwx opened this issue 4 years ago • 1 comments

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.

pstatonwx avatar May 19 '22 18:05 pstatonwx

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

wang0618 avatar Aug 04 '23 14:08 wang0618