IMPR: Speed up fontawesome

This commit is contained in:
Tony Air 2021-08-08 21:30:18 +02:00
parent 4d8ab97973
commit 6e4b32b340

View File

@ -86,7 +86,7 @@ class DeferredRequirements implements TemplateGlobalProvider
? Config::inst()->get(FontAwesomeField::class, 'version')
: $config['fontawesome_version'];
self::loadCSS('//use.fontawesome.com/releases/v'.$v.'/css/all.css');
self::loadJS('//use.fontawesome.com/releases/v'.$v.'/js/all.js');
}
self::loadCSS($mainTheme.'.css');