Wait a bit after all assets being loaded.
Put the setTimeout in IframeUtil.waitForAssets