Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Link asyncron #7172

Closed
katgirl opened this issue Jul 15, 2014 · 2 comments
Closed

Link asyncron #7172

katgirl opened this issue Jul 15, 2014 · 2 comments
Labels
Milestone

Comments

@katgirl
Copy link

katgirl commented Jul 15, 2014

statt wie bisher

$GLOBALS['TL_JAVASCRIPT'][] = 'http'.(\Environment::get('ssl') ? 's' : '').'://maps.google.com/maps/api/js?language='.$arrMap['language'].'&sensor='. ($arrMap['sensor'] ? 'true':'false');

zu nutzen, würde ich gerne

$GLOBALS['TL_JAVASCRIPT'][] = ('http'.(\Environment::get('ssl') ? 's' : '').'://maps.google.com/maps/api/js?language='.$arrMap['language'].'&sensor='. ($arrMap['sensor'] ? 'true':'false')', 'asyncron');

verwenden.

Siehe: https://developers.google.com/speed/docs/insights/BlockingJS

@leofeyer
Copy link
Member

leofeyer commented Sep 5, 2014

Implementiert in f3bf1a4. Benutzung:

// Normale Einbindung
$GLOBALS['TL_JAVASCRIPT'][] = 'assets/script/script.js';

// Statische Einbindung
$GLOBALS['TL_JAVASCRIPT'][] = 'assets/script/script.js|static';

// Asynchrones Laden
$GLOBALS['TL_JAVASCRIPT'][] = 'assets/script/script.js|async';

@katgirl
Copy link
Author

katgirl commented Sep 8, 2014

#6242

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants