From 04576b9f790b8b679a317a6a66735cd87e9f9157 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 14 Jul 2021 12:20:57 -0700 Subject: [PATCH] Commented library preload code. --- e107_handlers/library_manager.php | 30 ++++++++++++++++++++++++++++++ e107_plugins/social/e_module.php | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/e107_handlers/library_manager.php b/e107_handlers/library_manager.php index 615102c46..3007c238c 100755 --- a/e107_handlers/library_manager.php +++ b/e107_handlers/library_manager.php @@ -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, + ), + ),*/ ); diff --git a/e107_plugins/social/e_module.php b/e107_plugins/social/e_module.php index 20e56165a..1bf44221f 100644 --- a/e107_plugins/social/e_module.php +++ b/e107_plugins/social/e_module.php @@ -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;