DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Frontend Performance Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Frontend Performance
Why is a detached DOM node still held in a JS array (like the `detachedNodes` pattern) a genuine leak risk?
A
It isn't a real risk — detached nodes are automatically garbage collected
B
The array keeps the entire detached subtree (and anything its own event listeners/closures reference) reachable, even though it's no longer visually part of the page
C
This only matters if the array has more than 1000 elements
D
Detached DOM nodes cannot be stored in arrays at all
Check Answer