Hi.
Update on the IE7 memory leak problem

Original problem:
I'm having problems with all ajax updates, $("#element").load() etc.,
as well as just setting html content with html().
Doing this over and over will gradually eat up IE 7's memory.

Test case to reproduce:
http://mif86.com/memtest3.htm

It periodically loads another page's html content (http://mif86.com/
memtest2.htm) into a div using jQuery's $("#element").load
("memtest2.htm").
If you watch the memory usage in internet explorer, it keeps growing
endlessly.

Solution:
But doing this before updating element content prevents the memory
leak completely, it seems:
document.getElementById('test').innerHTML = '';

Should this perhaps be patched to the jQuery remove() method somehow,
so that it will not leak?


Ref.:
http://www.outofhanwell.com/ieleak/index.php?title=Fixing_Leaks

Reply via email to