All versions of IE (including 10) appear to hold on to a significant amount of memory allocated by iframes until window.top.unload occurs. This creates quite the challenge f
Have a try with this:
collectGarbageForIframe: function() {
var $iframes = $("*[tag='iframe']");
$iframes.each(function() {
var $target = $(this);
if($target.length>0) {
$target[0].src = "about:blank";
$target[0].contentWindow.document.write('');
$target[0].contentWindow.close();
$target.remove();
if( typeof CollectGarbage == "function") {
CollectGarbage();
}
}
});
}