Am finding memory leaks using chrome(newbie :))
How to identify where the memory is leaking?
And what is Document DOM tree and Detached Dom tree?
Can any
Steps to identify memory leaks.
Steps to identify Detached DOM Trees
You can inspect the detached DOM trees as shown below.
To check what DOM is it you may want to hover over the Red HTML elements as shown below. This helps in debugging once you located the DOM
What are "Document DOM Trees" ? The whole Document is a big DOM Tree inside . Document is XML and the tags are nested thus forming a tree. (DOM - Document Object Model.)
So what are "Detached DOM Trees" ?
HTML elements are instance of objects that consume memory. Each such element can store on them event listeners and data associated with it. Now "Detached DOM Trees" are nothing but DOMs that are in the Browser's memory but are NOT attached to the main DOM tree aka "Document DOM Trees".
By examining these hanging objects we can detect issues and avoid memory leaks.
Solving this problem is a vast topic as you may see some varied solutions out there. Follow following posts for what some people have done to remove the problem.
Can't seem to cleanup detached DOM elements
Javascript Memory Leaks: Detached DOM tree