[ 3 posts ]

Jin Joo

  • Username: jin
  • Joined: Wed Aug 04, 2010 11:03 pm
  • Posts: 4
  • Offline
  • Profile
Tags:

IE6 Severe Memory Leaks

Post Posted: Thu Aug 05, 2010 12:18 pm
+0-
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?

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile
Tags:

Re: IE6 Severe Memory Leaks

Post Posted: Fri Aug 06, 2010 9:01 am
+0-
It would be much easier to help with this if you had an example..

Jin Joo

  • Username: jin
  • Joined: Wed Aug 04, 2010 11:03 pm
  • Posts: 4
  • Offline
  • Profile
Tags:

Re: IE6 Severe Memory Leaks

Post Posted: Sat Aug 07, 2010 11:16 am
+0-
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();
}
  [ 3 posts ]
Display posts from previous:  Sort by  
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