I am using google maps API to load the google map in my code. Now, I have to give the user an option to manually enter the address when google map is not available. Here, my problem is that when google map is not available browser takes around 2 minute to connect to the API
<script type="text/javascript"
src="<%=requestScheme%>://maps.google.com/maps/api/js?sensor=false&libraries=places">
</script>
and the request is getting aborted due to time out. So, I have to wait 2 minute until to show the option for manually entering the details. Any suggestion to avoid this 2 min time delay when the map is not available. Do I have to set up a time out where I can wait for 30 sec and allow the user to manually enter the if the map is not loading with in that time frame?