1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Commented library preload code.

This commit is contained in:
Cameron 2021-07-14 12:20:57 -07:00
parent 099dffdfdd
commit 04576b9f79
2 changed files with 31 additions and 1 deletions

View File

@ -940,6 +940,36 @@ class core_library
'library_path' => '{e_WEB}lib/font-awesome',
'path' => '5',
'version' => '5.15.2',
/* 'preload' => array(
1 => array(
'as' => 'font',
'type' => 'font/woff',
'path' => 'webfonts/fa-solid-900.woff',
'crossorigin' => false,
'browsercache' => false,
),
2 => array(
'as' => 'font',
'type' => 'font/woff',
'path' => 'webfonts/fa-brands-400.woff',
'crossorigin' => false,
'browsercache' => false,
),
3 => array(
'as' => 'font',
'type' => 'font/woff2',
'path' => 'webfonts/fa-solid-900.woff2',
'crossorigin' => false,
'browsercache' => false,
),
4 => array(
'as' => 'font',
'type' => 'font/woff2',
'path' => 'webfonts/fa-brands-400.woff2',
'crossorigin' => false,
'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}social/font/fontello.woff2?21917124", 'as' => "font", 'type'=>"font/woff2", 'crossorigin' => true));
e107::link(array('rel'=>'preload', 'href'=> "{e_PLUGIN}social/font/fontello.woff2?21917124", 'as' => "font", 'type'=>"font/woff2", 'crossorigin' => 'anonymous'));
e107::css('social' ,'css/social.css');
$appID = false;