From be7c4b8fe744e5e3a38f39461db85073d524be40 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Thu, 30 Jul 2026 23:56:16 -0500 Subject: [PATCH] perf(desktop): let the hidden link-title window throttle It loads arbitrary user-linked pages offscreen; unthrottled, a heavy page burns full CPU for the window's whole lifetime. Title resolution rides load events and main-process timers, which throttling doesn't touch. --- apps/desktop/electron/link-title-window.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/desktop/electron/link-title-window.ts b/apps/desktop/electron/link-title-window.ts index 0920976a528..226ac3ce60e 100644 --- a/apps/desktop/electron/link-title-window.ts +++ b/apps/desktop/electron/link-title-window.ts @@ -9,7 +9,13 @@ export function linkTitleWindowOptions(partitionSession) { width: 1280, height: 800, webPreferences: { - backgroundThrottling: false, + // Deliberately throttled: this hidden window loads arbitrary user-linked + // pages, and an unthrottled heavy page burns full CPU for the window's + // whole lifetime. Title resolution rides load events + // (page-title-updated / did-finish-load) plus main-process timers, none + // of which the renderer clamp touches — hidden-page throttling only + // slows the page's own timer-driven JS, and the grace window already + // absorbs that. contextIsolation: true, javascript: true, nodeIntegration: false,