The Background Throttling Problem: Why Brave Needs a True "Exempt from Suspension" Whitelist for WebSockets/Real-Time Apps

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: מבקר מציאות

Interesting write-up.

Do you have any measurements, bug reports, Chromium references, or reproduction steps showing that HTB Pwnbox specifically is being disconnected because of timer throttling or renderer backgrounding?

A few things I’m trying to verify:

  • Does the issue reproduce in stock Chrome/Chromium on Linux, or only in Brave?

  • Have you captured WebSocket/network logs showing heartbeats being delayed or dropped after the tab becomes inactive?

  • Do the three launch flags actually resolve the issue in a repeatable way with HTB Pwnbox?

  • Has anyone from the Brave team confirmed that these flags are still honored in current Brave/Chromium builds?

I’m trying to distinguish between a confirmed root cause and a plausible explanation.

Thanks for the detailed questions — let me address each one directly.

  1. Brave-specific mechanisms beyond what I listed? No. The three flags I documented (--disable-background-timer-throttling, --disable-backgrounding-occluded-windows, --disable-renderer-backgrounding) target Chromium’s core throttling system, which Brave inherits without modification. There is no additional Brave-specific layer beyond this.

  2. Reproduced with HTB Pwnbox specifically? Yes. The disconnections in HTB Pwnbox were the direct trigger for this post. The behavior is consistent and reproducible: switching tabs causes the session to drop after the heartbeat timeout window.

  3. Why does throttling affect WebSockets? The WebSocket transport itself is not terminated — but the JavaScript keepalive/heartbeat logic running on the page gets throttled to once per minute. The server interprets the missed heartbeat as a dead connection and closes it from its side. The transport is fine; the JS side is what fails.

  4. Officially supported launch flag? No. These are Chromium-level flags. Brave does not officially document or support them, but they are functional and verifiable via brave://version in the Command Line field.

  5. Chrome vs Brave comparison on Linux? I haven’t run a controlled side-by-side test. Since both share the same Chromium throttling engine, the behavior should be identical — this is not a Brave-specific bug, it’s a Chromium architectural issue that Brave hasn’t addressed with any override.

If you manage to run a controlled side-by-side comparison, please post your findings! If we can confirm the exact delta between the two, we have a much stronger foundation to request a feature for a native “exempt-from-suspension” whitelist in Brave.

מבקר מציאות