Wait for iframe to load before sending message