Skip to content

Detached DOM nodes not deleted after changing page #1319

Closed
@nicolas-t

Description

@nicolas-t

Version

2.4.0

Reproduction link

http://jsfiddle.net/3xu0o52g/5/embedded/result/

Steps to reproduce

On the JSFiddle

  1. click the first link "go to bar", it'll render a list of 80 DOM nodes
  2. with chrome dev tool take a first heap snapshot, type "Detached" in the Class filter
    this is what you should get http://imgur.com/Zz1LDY6
  3. click the "go to foo" link
  4. with chrome dev tool take a second heap snapshot, type "Detached" in the Class filter
    this is what you should get http://imgur.com/5bVLudr

our 80 DOM nodes are still in memory

What is expected?

Detached DOM nodes from previous pages should be removed from memory when changing page

What is actually happening?

Detached DOM nodes from previous pages are kept in memory, and make the app unusable in case of multiple list of 100 items made of multiple DOM nodes


The full JSFiddle is here : https://jsfiddle.net/3xu0o52g/5/
I ran into this bug displaying multiple galleries (on different pages) "masonry like" of 100 images.
I really hope it's not the expected behavior, because it makes my app unusable after a few pages.

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