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
精彩评论