Skip to content
Snippets Groups Projects
Commit aa7e2a38 authored by Christian Adamski's avatar Christian Adamski
Browse files

Issue #3448364 by ChristianAdamski: Load Google async

parent 9eb50f4c
No related branches found
No related tags found
1 merge request!48Issue #3448364 by ChristianAdamski: Load Google async
Pipeline #177468 canceled
geolocation_google_maps.loader:
version: 4.x
js:
js/geolocation-google-maps-loader.js: {}
function DrupalGeolocationGoogleLoader() { Drupal.geolocation.maps.mapProviderCallback('Google'); }
......@@ -192,19 +192,8 @@ class GoogleMaps extends GoogleMapsProviderBase {
],
],
],
// Required jsonp callback.
'html_head' => [
[
[
'#tag' => 'script',
'#attributes' => [
'type' => 'text/javascript',
],
'#value' => "function DrupalGeolocationGoogleLoader() { Drupal.geolocation.maps.mapProviderCallback('Google'); }",
],
'google_loader',
],
'library' => [
'geolocation_google_maps/geolocation_google_maps.loader',
],
]
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment