1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Library preloading tweak.

This commit is contained in:
Cameron
2020-12-02 13:39:27 -08:00
parent c9bc789b79
commit fa4433d8d7
2 changed files with 3 additions and 2 deletions

View File

@@ -726,9 +726,10 @@ class core_library
'as' => 'font',
'type' => 'font/woff2',
'path' => 'fonts/fontawesome-webfont.woff2?v=4.7.0',
'crossorigin' => false,
'crossorigin' => true,
'browsercache' => false,
),
),
);

View File

@@ -4,7 +4,7 @@ if(e_ADMIN_AREA !==true)
{
e107::css('social', 'css/fontello.css');
e107::link(array('rel'=>'preload', 'href'=> e_PLUGIN_ABS."social/font/fontello.woff2", 'as' => "font", 'type'=>"font/woff2"), true);
e107::link(array('rel'=>'preload', 'href'=> e_PLUGIN_ABS."social/font/fontello.woff2?21917124", 'as' => "font", 'type'=>"font/woff2", 'crossorigin' => true));
e107::css('social' ,'css/social.css');
$appID = false;