Use code PERFMATTERS for an additional 10% off!

How to Disable Google Maps API in WordPress

Some WordPress themes and plugins have Google Maps API built-in and unfortunately sometimes don’t have a way to turn it off. Google maps, unfortunately, can wreak havoc on your site’s performance, even though the requests are loaded async. Typically a request is made via the official Google Maps API to the following URL:

//maps.googleapis.com/maps/api/*

There might also be additional requests to the following URL:

//maps.gstatic.com/mapfiles/*

And here is an example of a map plugin running on WordPress. Take a look at all the requests made to Google Maps. 20 HTTP requests just to load one map. Depending on the integration there might be fewer or more requests.

http request to maps.google.com/maps/
http request to maps.google.com/maps/

You can now disable the Google Maps API in WordPress with a single click.  Simply select “Disable Google Maps” under the Options section. Note: This will, of course, break your maps, so only use if you aren’t needing Google maps on your site.

Disable Google Maps API in WordPress
Disable Google Maps API in WordPress

Was this article helpful?

Related Articles