Hacker News new | ask | show | jobs
by AstralStorm 3053 days ago
Browsers do not provide such caps for JS CPU usage. Maybe they should.

This is extra bad when you're viewing on a phone, tablet or battery powered laptop.

2 comments

If this problem persists, we will see tools popping up that use the OS APIs for restricting resource usage (e.g. cgroups on Linux) when starting the browser.
All it needs is faking the available computing power to any process created by the browser, or run it into a VM with extremely limited resources.