TL;DR: Brave has no native way to permanently exempt a specific origin from background throttling. This breaks WebSocket-based real-time apps (HTB Pwnbox, VNC, live dashboards). A terminal workaround exists for now — but we need a proper “Keep Alive in Background” toggle per origin in the UI.
The recent wave of issues regarding background tab freezing, UI lagging, and constant disconnections in real-time web applications (like HTB Pwnbox, VNC/Guacamole over WebSockets, live trading dashboards, and self-hosted remote labs) highlights a severe architectural pain point.
While Chromium’s aggressive resource management makes sense for casual browsing on battery-powered devices, it is fundamentally breaking persistent asynchronous connections.
The Root of the Problem
When a user switches tabs, Chromium actively penalizes the background process through two core mechanisms:
Intense Timer Throttling: Caps DOM timers to run only once per minute after a 5-minute grace period. For real-time applications, missing a WebSocket heartbeat for 60 seconds triggers an immediate server-side timeout.
Renderer Backgrounding: The browser deprioritizes CPU shares for the background renderer PID, causing massive frame drops and lagging WebSocket state updates when the tab is out of focus.
Why Current Workarounds Fail
Right now, power users are forced to rely on dirty hacks just to keep their workflows alive:
Disabling flags via brave://flags or brave://discards (temporary, resets on restart)
Running silent audio loops to trick Chromium’s wake-lock system
None of these are sustainable or persistent solutions.
Temporary Terminal Bypass
Linux and Kali users can bypass this by ensuring the browser is completely shut down, and then launching it from the terminal using the following arguments:
--disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-renderer-backgrounding
Windows users:
You can append the exact same three arguments listed above to the end of the Target field in your Brave shortcut properties (right-click shortcut, go to Properties, and add them at the very end of the line).
Verify flags are active:
Go to brave://version and check the Command Line field. If the flags do not appear there, Brave was not fully closed before launching.
The Proposed Solution
We need a native “Never Throttle or Suspend This Origin” whitelist — just like cookies or JavaScript permissions per site. A simple “Keep Alive in Background” toggle in the URL bar shields icon would solve this permanently.
Would love to hear from the dev team on whether this is on the roadmap.
Reported by: מבקר מציאות