Let page load before prompt