I’m talking about this specific bit of code in the MoPub iOS SDK that disables the loading of web pages (including <iframe>s) while and MRAID interstitial is animating into view. I’m curious:
- Why does that code exist? Why prevent loading
<iframe>s during the animation?
- Could the MRAID viewableChange event be adjusted so that it is fired after the web view animates (and it is safe to load
<iframe>s?)
To answer your question, we fall into the category of both a creative vendor and DSP.
Our use-case is quite simple: we are trying to loading video player <iframe>s inside of our MRAID unit—YouTube, Vimeo, Dailymotion, etc. Sometimes (because of how long our code takes to load, network performance, etc.) we end up attempting to load one of the video player <iframe>s during the MRAID interstitial animation, which will silently fail because of the code I linked to above.
Without a reliable way to know when it is safe to load <iframe>s, we can’t really fix this problem on our end.