Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Data: avoid using delete on DOM nodes #1664
This is similar to #1662 but for jQuery 1.x which reproduces https://code.google.com/p/chromium/issues/detail?id=378607 in
The easiest way to reproduce it, in the chrome console (on any page, a blank one makes the memory snapshot easier to read):
If you find the detached div element in the heap snapshot it is about 150 bytes in snapshot 1, in snapshot 2 I'm normally seeing it around 6300 bytes.
I'm having trouble testing this properly in oldIE so I'm not 100% sure if the current commit covers oldIE correctly. I think setting