Hi,
I'm loading in content using an iframe via a menu with jquery which is updating the 'src' attribute of the iframe to then load in the desired page. Each of the pages have their own javascript includes and heavy content.
The code is as follows:-
$(document).ready(function() {
loadPage('main.php');
});
function loadPage(url) {
$('#applicationFrame').attr('src', url);
}
And the iframe on the index page looks as follows:-
<iframe id="applicationFrame" application="yes" trusted="yes" frameborder="0" />
(Side note: I realise that the iframe here is taking nonstandard attributes, but this is an internal intranet application running in one of these Microsoft HTA's in which they do mean something.)
Anyway, the menu items are just calling javascript:loadPage('whatever.php') in order to load in whatever content is needed.
The problem I'm facing is that on each subsequent page click of the menu the frames are leaking memory until eventually the entire app slows to a crawl. sIEve reports the following:-
The leaks column is ascending here with every click (21 -> 44 -> 65) etc.
Examining the leaks inspector shows:
Which looks to me like it is just the entire iframed content which has leaked.
Is there anyway to avoid this? Am I missing something? I've found a similar issue here that the dojo framework has had, but trying the suggested solutions hasn't seemed to work. I've also tried a bunch of other things as pasted here but to no resolve.
This only seems to (surprise) affect IE6 which is really the only target audience of the application.