开发者

Force background tabs in Chrome to run setTimeout at normal speed

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜