开发者

Force background tabs in Chrome to run setTimeout at normal speed

开发者 https://www.devze.com 2023-03-28 05:37 出处:网络
Does Chrome have any manual override of the minimum window timer resolution for background tabs? I\'m testing instances of a web a开发者_运维问答pplication in multiple tabs, and the minimum resolution

Does Chrome have any manual override of the minimum window timer resolution for background tabs? I'm testing instances of a web a开发者_运维问答pplication in multiple tabs, and the minimum resolution of 1000 ms interferes with my workflow, forcing me to keep Ctrl+Tabbing through the tabs to keep things running. (The app uses setTimeout to break up long-running operations and preserve UI responsiveness.)


You should use webworkers they timers will remain normal even if tab focus is lost

0

精彩评论

暂无评论...
验证码 换一张
取 消