You do not need to include both of these scenarios:
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="http://www.google.com/jsapi"></script>
especially if you use only Google Maps. If you use more than these Google APIs (or these JavaScript libraries ), only include http://www.google.com/jsapi . Otherwise, if you use only Google Maps, only include http://maps.google.com/maps/api/js?sensor=false . This will save one request.
You can't get maps to load faster, but one of the tricks you can do is to load a static map first using the Google Map API of static maps , so it will load faster.
Another trick is to download maps only when the user asks for it. However, not knowing what your siteβs requirement is, itβs hard to say. With the google library downloader you can execute
google.load("maps", "3", {other_params:'sensor=false', callback: function(){ var map;
or if you are not using a library loader, you can do this .
source share