Furtive Answer really helped me! He was 100% right that the onload event is indeed a problem. I looked deeper into my code, and I found that before creating the child iframe, I was lazy to load some scripts using the technique below:
lazy_load: function(url,on_finish_function)
{
var head = document.getElementsByTagName("head")[0];
var script = document.createElement("script");
script.src = url;
var done = false;
var This = this;
script.onload = script.onreadystatechange = function()
{
if ( !done && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete"))
{
done = true;
on_finish_function.call(This,null);
head.removeChild( script );
}
};
head.appendChild(script);
},
HEAD .
iframe on_finish lazy_load.
, IE 12 , , :) ? IE sooo lazy_load dom?