Both of these scripts are not necessary:
<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>
If you are using only Google Maps, there is no need to include both. However, if you are utilizing more than one of these Google APIs or JavaScript libraries, then include only http://www.google.com/jsapi
. If your usage is limited to Google Maps alone, include only
http://maps.google.com/maps/api/js?sensor=false
. This will reduce the number of requests made.
Improving map loading speed can be challenging, but a workaround could be first loading a static map using Google Map's Static Maps API to give the illusion of faster loading times.
An alternative approach is to trigger map loading only upon user demand. However, this decision depends on your site's specific requirements. If utilizing the Google library loader, you can use
google.load("maps", "3", {other_params:'sensor=false', callback: function(){
var map; // initialize your map in here
});
If not utilizing the library loader, refer to this resource.