mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Commented library preload code.
This commit is contained in:
@@ -940,6 +940,36 @@ class core_library
|
|||||||
'library_path' => '{e_WEB}lib/font-awesome',
|
'library_path' => '{e_WEB}lib/font-awesome',
|
||||||
'path' => '5',
|
'path' => '5',
|
||||||
'version' => '5.15.2',
|
'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,
|
||||||
|
),
|
||||||
|
),*/
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ if(e_ADMIN_AREA !==true)
|
|||||||
{
|
{
|
||||||
|
|
||||||
e107::css('social', 'css/fontello.css');
|
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');
|
e107::css('social' ,'css/social.css');
|
||||||
|
|
||||||
$appID = false;
|
$appID = false;
|
||||||
|
Reference in New Issue
Block a user