Here is the test URL
http://edventures.com/temp/divtest.php
Procedure:
Is there any way to fix this? Any way to call Garbage collector forcefully without reloading the window?
I am under assumption that when I remove DIV the memory will be freed but does not seem to work that way.
Please let me know any fix to this.
Thanks for your help.
Suhas
Here's how to create DOM elements and prevent memory leaks in IE.
function createDOMElement(el) {
var el = document.createElement(el);
try {
return el;
}
finally {
el = null;
}
}
You can use variations of the try/finally trick to prevent the leaks when doing other DOM operations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With