From fa4433d8d71939d4b7ce1dd5c793d751eb1565aa Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 2 Dec 2020 13:39:27 -0800 Subject: [PATCH] Library preloading tweak. --- e107_handlers/library_manager.php | 3 ++- e107_plugins/social/e_module.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/e107_handlers/library_manager.php b/e107_handlers/library_manager.php index 959d09101..ceee284bb 100755 --- a/e107_handlers/library_manager.php +++ b/e107_handlers/library_manager.php @@ -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, ), + ), ); diff --git a/e107_plugins/social/e_module.php b/e107_plugins/social/e_module.php index ae0b55b92..b7b8490c7 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_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;