| Page 1 of 1 | [ 3 posts ] |
|
I'm trying to stop severe IE6 memory leaks in an YUI based applications that was programmed by different programmers with varying skill levels.
When I look at one page in sIEve, I see that the HTML tag has been orphaned with numerous references with a YUI assigned ID (yui_3_1_0_1_12810....). Why would the HTML tag be orphaned? |
|
It would be much easier to help with this if you had an example..
|
|
One culprit for the memory leaks was an iframe that often contained a large amount of data. Setting the src of the iframe to an empty string released the memory used for the iframe. I did this before I unloaded the page and stopped some memory leakage.
Code: var myFrame = Y.one('#myIframeElement'); // Call function defined in the iframe window // causes circular reference with the iframe window.frames['myIframeElement'].window.doSomething(foo); //next line currently needed for beforeunload Y.Node.DOM_EVENTS.beforeunload = true; Y.on("beforeunload",function(e) { myFrame.set('src',''); myFrame.destroy(); } |
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group