diff --git a/ecc/blocks/form-handler/controllers/venue-info-component-controller.js b/ecc/blocks/form-handler/controllers/venue-info-component-controller.js index 02c96ee0..a77e4f1e 100644 --- a/ecc/blocks/form-handler/controllers/venue-info-component-controller.js +++ b/ecc/blocks/form-handler/controllers/venue-info-component-controller.js @@ -21,7 +21,7 @@ function togglePrefillableFieldsHiddenState(component) { async function loadGoogleMapsAPI(callback) { const script = document.createElement('script'); const apiKey = await getSecret(`${getEventServiceEnv()}-google-places-api`); - script.src = `https://maps.googleapis.com/maps/api/js?key=${apiKey}&libraries=places&callback=onGoogleMapsApiLoaded`; + script.src = `https://maps.googleapis.com/maps/api/js?loading=async&key=${apiKey}&libraries=places&callback=onGoogleMapsApiLoaded`; script.async = true; script.defer = true; window.onGoogleMapsApiLoaded = callback;