Skip to content

Specify lifetime of the targets of a IntersectionObserver instance #520

@xeaone

Description

@xeaone

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions