VE-422 Allow dialog iframe to fully load before appending script