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.
This commit is contained in:
Brooklyn Nicholson 2026-07-30 23:56:16 -05:00
parent 8ccb4c2cee
commit be7c4b8fe7

View file

@ -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,