Solution:
Root Cause: Detached DOM Tree Retention in Extension Content Scripts
Extensions that manipulate page elements (such as ad blockers, custom UI overlays, or auto-fill tools) inject
content scripts into web page DOM contexts. If a content script maintains JavaScript references to DOM elements that have been removed from the main document (e.g., via AJAX updates or single-page application navigation), those nodes become
Detached DOM elements. The Chromium V8 Garbage Collector cannot reclaim the associated memory, causing the extension process or page renderer process to continuously expand in RAM size (often exceeding 2–4 GB per process).
Diagnostic Verification:
1Open Chrome internal Task Manager by pressing Shift + Esc (or Menu > More Tools > Task Manager).
2Sort by Memory footprint and locate processes labeled Extension: [Extension Name].
3Open Chrome DevTools on an affected background page (chrome://extensions > enable Developer mode > click background page or inspect views service worker).
4Select the Memory tab > choose Heap snapshot > click Take snapshot.
5In the Class Filter, type Detached. Look for Detached HTMLDivElement or Detached DocumentFragment retaining large distance trees.
Step-by-Step Fix:
1Isolate the Rogue Extension:
Navigate to chrome://extensions.Toggle off extensions one by one while monitoring process RAM in Shift + Esc Task Manager.2Restrict Extension Site Access Permissions:
On the problematic extension, click Details.Under Site access, change from *On all sites* to *On click* or *On specific sites* to stop content script injection into every frame.3Re-install or Replace Extension:
Remove the extension, clear browser cache (Ctrl + Shift + Delete), and reinstall the latest version built on Manifest V3 specifications.Prevention & Long-Term Monitoring:
Periodically inspect Shift + Esc memory footprint and replace legacy extensions that show continuous memory creep during long browsing sessions.