Closed katgirl closed 9 years ago
Ist drin.
83206e1e27cf5f0b2c38c51a5056ee93a97be271
Ist wieder raus - machte Probleme.
müsste das nicht auch wie folgt lauten:
$GLOBALS['TL_JAVASCRIPT'][] = 'http'.(\Environment::get('ssl') ? 's' : '').'://maps.google.com/maps/api/js?v=3.exp&callback=initialize&language='.$arrMap['language'].'&sensor='. ($arrMap['sensor'] ? 'true':'false') . '|async';
siehe: https://developers.google.com/maps/documentation/javascript/examples/map-simple-async
Ich habe es bei mir so eingefügt:
$GLOBALS['TL_JAVASCRIPT'][] = 'http'.(\Environment::get('ssl') ? 's' : '').'://maps.google.com/maps/api/js?key='.$objRootPage->dlh_googlemaps_apikey.'&language='.$arrMap['language'] .' '.async .' '.defer;
Ist das so machbar? Konnte bis jetzt keine Probleme feststellen.
Gruß Bastian
Contao 3.4 will support an |async flag for scripts in
$GLOBALS['TL_JAVASCRIPT']
, see contao/core#7172 and contao/core@f3bf1a4