Fix “Google Maps JavaScript API loaded multiple times”
Several Map instances on one page are supported. The warning concerns loading the Google Maps JavaScript API script more than once, not rendering two Cliq locator widgets.
Cliq Store Locator registers one WordPress script handle and reuses it for its Maps and optional Places autocomplete. A duplicate normally comes from a theme, page builder, another map/locator plugin, or custom code that also prints https://maps.googleapis.com/maps/api/js.
Find the second loader
- Open the affected page while logged out.
- View source and search for
maps.googleapis.com/maps/api/js. - In DevTools → Network, filter by
maps/api/jsand reload. - Note differing query parameters such as
key,libraries,callback,v, orlanguage. - Disable the suspected integration temporarily and repeat.
Optimization plugins can combine or defer scripts but should not manufacture a second Maps URL. Purge their cache after changing the owner.
Choose one owner
The recommended setup is to let Cliq load the API. Remove a manually enqueued Maps script and disable another plugin/theme's global loader on the locator page.
If the theme or another site-wide integration must remain the owner:
- Open Store Locator → Settings → Map.
- Enable Google Maps API is already loaded on the frontend.
- Save settings and clear page/cache optimization caches.
- Confirm the external request uses the same API key and includes the Google libraries required by the locator, including Places autocomplete and advanced markers.
- Confirm that script is available before the locator initializes.
This setting stops Cliq from printing a second Google Maps API URL while preserving the plugin's internal script dependency. It does not repair an externally loaded API that is missing libraries, uses a restricted key, or loads too late.
Verify
Reload in a private window. The Network panel should show one Maps JavaScript bootstrap request, all locator Maps should initialize, autocomplete should still open suggestions, and the duplicate-load warning should disappear.
Google documents supported loading parameters in Load the Maps JavaScript API.