Google Maps Bug
This commit is contained in:
@@ -53,7 +53,7 @@ export function loadGoogleMaps(): Promise<void> {
|
||||
// The callback parameter tells Google Maps to call our function when ready
|
||||
// Using async + callback ensures Google Maps initializes asynchronously
|
||||
const script = document.createElement('script');
|
||||
script.src = `https://maps.googleapis.com/maps/api/js?key=${apiKey}&callback=${callbackName}&libraries=places&loading=async`;
|
||||
script.src = `https://maps.googleapis.com/maps/api/js?key=${apiKey}&callback=${callbackName}&libraries=places,marker&loading=async`;
|
||||
script.async = true;
|
||||
script.defer = true; // Load asynchronously without blocking parsing (per Maps best practices)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user