Make sure document is ready for geolocation