Load ai_external.js delayed on external page, breaks resize
I'm using Advanced iframe pro and most of the resizing with postMessage is working fine.
Because of some limitation with the used framework of the external site, I should load the ai_external.js delayed after the initial site is loaded in the iframe. As soon as I remove the ai_external.js from the body and load it delayed with jQuery.getScript the functionality is breaking and no postMessages are logged in the console and resizing is no longer working.
Is there are chance to get the plugin working in such a scenario?
the ai_external.js has a
If you load this delayed then the onload event is already fired when the script is initialized.
If if you like to do this you have to change this method to execute
You are welcome ;).