w3c/IntersectionObserver

Specify lifetime of the targets of a IntersectionObserver instance

xeaone opened this issue · 0 comments

I have a question about the lifetime of the observed targets of an IntersectionObserver instance. If an instance of a IntersectionObserver exists and it observers multiple targets what happens to the targets removed from the DOM and do not have a reference. Will they get garbage collected and will any internal event listeners or references to the removed target be cleaned up or garbage collected?

These issues are similar but what's unclear to me is the observed targets and any internal impact by not explicitly calling unobserve on observed targets.