Skip to content

Commit

Permalink
Merge pull request #3339 from nitya-nalamari/load-maps-async
Browse files Browse the repository at this point in the history
Load google maps asynchronously
  • Loading branch information
JustFly1984 committed Mar 5, 2024
2 parents 5dc08e4 + b250713 commit 31fd3db
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export function makeLoadScriptUrl({
params.push(`auth_referrer_policy=${authReferrerPolicy}`)
}

params.push('loading=async')
params.push('callback=initMap')

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

0 comments on commit 31fd3db

Please sign in to comment.