Thank you! Your feedback has been delivered
Thank you! Your feedback has been sent

insert and remove causing memory leak in Isotope

I have a large app that has been phonegapped and discovered rather quickly that there is a major DOM leak. It took a while to track it down to Isotope. I don't know if its my usage of Isotope, or if there is actually a bug.

A reduced test case resides here: http://dev.drinkupdt.com/test_isotope.html

I have worked on this for days and if anyone could point out what I'm doing wrong it would be appreciated.

Oh, so that this test case makes sense - the real app loads "tiles" on the fly from a server depending on geolocation, date/time, and other filters - the user can do this repeatedly hence the need to be able to remove all the tiles and insert new ones.

I imagine I've done something simple that is incorrect.

Thanks Scott

User Gravatar

sdsaunders

Posted Dec 3 2013 15:13 UTC

$10


  • isotope
    insert
    remove
  • 787 Views

2 Replies


Hi Scott,

I had same troubles with isotope. You can check this, it solved my problems:

https://github.com/khiltd/isotope-leak-free

Regards,

Nikola Boychev

User Gravatar

NBoychev

Posted Dec 7 2013 4:45 UTC

  1. STOP ASSIGNING RAW JQUERY SELECTOR RESULTS TO EXPANDO PROPERTIES ON THE THINGS THEY WERE SELECTING.
  2. Break the Circular Reference.
User Gravatar

user888

Posted Dec 21 2013 8:57 UTC

Add a reply

By posting a reply on CodersClan you agree to our Terms & Conditions