---
title: "Step-by-Step: Troubleshooting Google Map Loading Issues with Speed Optimizer WordPress Plugin(by SiteGround)"
description: "If you are using the **WP Google Map** plugin alongside the **Speed Optimizer** plugin, you might encounter an issue where your Google Maps fail to load or disappear from your site. This guide will explain why this happens and show you exactly how to…"
url: "https://wpgooglemap.com/documentation/step-by-step-troubleshooting-google-map-loading-issues-with-speed-optimizer-by-siteground/"
updated: "2026-04-03"
category: Troubleshooting / Plugin Compatibility
---

# Step-by-Step: Troubleshooting Google Map Loading Issues with Speed Optimizer WordPress Plugin(by SiteGround)

If you are using the **WP Google Map** plugin alongside the **Speed Optimizer** plugin, you might encounter an issue where your Google Maps fail to load or disappear from your site.

This guide will explain why this happens and show you exactly how to fix it by configuring the **Speed Optimizer** correctly.

## The Problem

**Speed Optimizer** improves your website speed by changing how scripts (like JavaScript) load on your page. It often defers execution or combines scripts together to prevent them from blocking the page content.

However, the **Google Maps API** is very sensitive. It requires strict, sequential loading. When **Speed Optimizer** defers or combines the Maps API and WP Google Map scripts, the required loading order is broken, resulting in a blank space or errors where the map should appear.

## Identifying the Conflict

To be certain **Speed Optimizer** is causing the issue, perform a quick test:

1. In your WordPress Dashboard, go to **Plugins > Installed Plugins**.
2. Briefly **Deactivate** the ***Speed Optimizer*** plugin.
3. Reload the page on your site where the map is supposed to be.

If the map appears perfectly after deactivation, you have confirmed the conflict. Reactivate the plugin so we can apply the proper fix below.

## Step-by-Step Resolution

To fix the map, we need to tell **Speed Optimizer** to ignore the specific scripts required by WP Google Map.

### Step 1: Navigate to Frontend JavaScript Settings

1. From your WordPress Dashboard menu, go to **Speed Optimizer > Frontend**.
2. Click on the **JavaScript** tab.

![](https://wpgooglemap.com/wp-content/uploads/2026/04/Speed_Optimize_frontend_javascript-1024x733.png)

### Step 2: Exclude Scripts from Deferral

To fix the most common issue, we will exclude our scripts from being deferred:

1. Scroll down to the **Defer Render-blocking JavaScript** section (make sure the toggle is ON).
2. Click the pencil icon or the edit button next to **Exclude from Deferral of Render-blocking JS**.
3. A dropdown or text field will appear. You need to add the following two handles/URLs exactly as shown:
   - `/plugins/gmap-embed/public/assets/js/wgm-frontend.js`
   - `https://maps.google.com/maps/api`
4. Click **Confirm** or **Save** to add these exclusions.

![](https://wpgooglemap.com/wp-content/uploads/2026/04/Speed_Optimize_exclude_from_deferal-1.png)

### Step 3: Exclude Scripts from Minification/Combination (If Necessary)

Usually, excluding the scripts from deferral (Step 2) is enough. However, if your map is still not loading, you should also exclude them from Minification and Combination.

1. On the same JavaScript settings page, locate the **Minify JavaScript Files** and **Combine JavaScript Files** sections.
2. If these options are turned on, look for their respective exclusion settings (**Exclude from JavaScript Minification** and **Exclude from JavaScript Combination**).
3. Add the exact same two entries:
   - `/plugins/gmap-embed/public/assets/js/wgm-frontend.js`
   - `https://maps.google.com/maps/api`

![](https://wpgooglemap.com/wp-content/uploads/2026/04/Speed_Optimize_exclude_from_combination.png)

### Step 4: Clear All Caches

Changes made in optimization plugins won't take effect immediately until the cache is cleared.

1. In the top WordPress admin bar, find the **Purge SG Cache** button and click it to clear your site's cache.
2. Additionally, clear your browser's cache or visit your page in an **Incognito/Private window**.

*[Placeholder: Insert a screenshot highlighting the "Purge SG Cache" option in the top WordPress admin bar.]*

## Confirming the Fix

Once you have cleared your caches, refresh the page containing your map. The WP Google Map should now load correctly and interact smoothly, while your website continues to benefit from the performance boosts of the **Speed Optimizer**.
