Why do @github background tabs run timeouts all the time? They're the main reason my browser is using CPU when idle.

Oct 19, 2015 · 4:56 AM UTC

4
3
3
I should note: @github is the issue for me because I know better than to leave news articles or pages with ads open in tabs.
4
Replying to @davidbaron
@davidbaron @mepartoconmigo @github i think for updating human readable time stamps, like "3 minutes ago". Requestanimationframe ftw
2
@juliangruber @mepartoconmigo @github Should really be using Page Visibility API, not requestAnimationFrame.
1
Replying to @davidbaron
@davidbaron @github Time to do some profiling! File a bug? setTimeout is throttled so it shouldn't be that. (Web Socket maybe?)
1
@timdream @github Throttling is only to 1sec; 20 tabs running JS every second can be significant. Should monitor visibility.
1
Replying to @davidbaron
@davidbaron @mepartoconmigo @github timeout = (fn, dt) => raf () => setTimeout fn dt