more robust page load checking for mobile safari

fix #454