Example 9

Example 9: DOM leaks bigger than expected

  1. Start memory profiling. Watch node count.
  2. Create a subtree of dom nodes and save a reference to a leaf and subtree route
  3. Detach tree
  4. Watch the detached node count
  5. Remove tree reference
  6. Watch the detached node count
  7. Remove leaf reference
  8. Watch the detached node count