Reduce the notification scanner's 1 Hz forced-layout poll
Facebook Messenger on your desktop, without the Facebook clutter
Brought to you by:
kristoffer-r
Originally created by: kristofferR
scanUnreadConversations runs every second for the process lifetime — including hidden windows — and each tick does per-span getBoundingClientRect (twice) plus getComputedStyle().fontWeight for every visible row: a forced style/layout pass every second, forever. Every other feature throttles while hidden (unread badge and recent threads go to 60s; download-anchors disconnects). The MutationObserver already provides sub-second reactivity; the poll is only a safety net for missed mutations and could drop to 5–15s.
Originally posted by: kristofferR
Fixed in [#137]. Scanning is mutation-driven and debounced; the safety poll now runs at 10s while visible / 60s while hidden instead of a 1 Hz forced-layout loop.
Related
Tickets:
#137Ticket changed by: kristofferR