New

Zen Tab Suspender

Creator · 2026 · 5 min read

A WebExtension that discards idle background tabs in Zen Browser on a timer, with protections for media, screen sharing, forms, notifications, and devices.

Overview

Zen Browser ships a tab unloader that never fires on a stock install, and even with the preference fixed it only reacts to memory pressure. This extension adds the missing idle-time trigger: a timer that calls browser.tabs.discard() on tabs that have been idle long enough, while a content script and an injected page script keep tabs that are playing media, sharing a screen, holding a half-filled form, showing notifications, or using USB or Bluetooth devices out of the candidate list.

Zen Tab Suspender discards idle background tabs in Zen Browser on a timer. Discarded tabs stay in the tab strip and reload when you select them.

Zen ships a tab unloader that never fires on a stock install, and even with the preference fixed it only reacts to memory pressure. Idle tabs stay loaded until the system reports pressure, and with a lot of tabs open Zen gets laggy. The extension supplies the missing idle-time trigger.

The default threshold is 30 minutes of inactivity, measured from tab.lastAccessed, with presets at 10, 30, and 120 minutes plus a custom value. A minimum number of loaded tabs is kept so the browser never discards down to nothing.

Tabs that are playing media, sharing a screen, holding a half-filled form, showing notifications, or using USB or Bluetooth devices are left alone. A content script in every frame reports media and form state, and injects a page-context script through a blob URL to observe the APIs an isolated-world content script cannot see. If that injection fails, the tab is treated as protected rather than discarded.

The extension makes no network requests and collects nothing.

Related Writing