DOH Robot iframe timing issue on IE8?
|Reported by:||jamesthomas||Owned by:||haysmark|
I've put in some console.logs & it appears that the iframe.contentWindow.dojo object doesn't have the "addOnLoad" function available at that time.
If I reload without flushing the browser cache, this error is almost always not encountered, which makes me believe it's a script load timing issue, based upon whether the scripts coming from the cache or over the network.
Wrapping the function call within a setTimeout(...., 0) handler fixes the issue for us.
Sorry I can't reproduce an example test case, as it's using internal-only project code, but we're the DOH pages are using lots of module dependencies.