Skip to content

Commit 31fd3db

Browse files
authored
Merge pull request #3339 from nitya-nalamari/load-maps-async
Load google maps asynchronously
2 parents 5dc08e4 + b250713 commit 31fd3db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-google-maps-api/src/utils/make-load-script-url.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export function makeLoadScriptUrl({
6767
params.push(`auth_referrer_policy=${authReferrerPolicy}`)
6868
}
6969

70+
params.push('loading=async')
7071
params.push('callback=initMap')
7172

7273
return `https://maps.googleapis.com/maps/api/js?${params.join('&')}`

0 commit comments

Comments
 (0)