Skip to content

Commit

Permalink
* JS loading optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Werner committed Nov 30, 2023
1 parent 27a44f6 commit a411cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

use Contao\System;

$GLOBALS['TL_JAVASCRIPT'][] = System::getContainer()->get('assets.packages')->getUrl('plentanewslike/layout.js', 'plentanewslike');
$GLOBALS['TL_BODY']['PLENTA_NEWS_LIKE_JS'] = '<script src="'.System::getContainer()->get('assets.packages')->getUrl('plentanewslike/layout.js', 'plentanewslike').'" defer></script>';

0 comments on commit a411cf0

Please sign in to comment.