ensure the iframe and our ready event are done in the correct order