Hacker News new | ask | show | jobs
by Senji 3468 days ago
Maybe tabs not currently being viewed should have their JS throttled? Is this an option in FF yet?
3 comments

I use Suspend Tab.

Earlier this year I realized a major offender was Google search and search results pages which would spin up a core more than once a minute.

This explained to me at least why it was still hogging cpu even with ad blocker.

Use requestAnimationFrame instead of setTimeout to get a throttled heartbeat.