script loading

2_async

You can load the script asynchronously.

In this case, you have to add a callback function, as shown in the example from the Google Maps JS API docs:

			
				
			
	

When the script is loaded, it will search a global function, named here initMap, to execute it. In the scope of this function, the google.maps object will be available.