diff --git a/src/component.php b/src/component.php index 33f38d9..325ba28 100644 --- a/src/component.php +++ b/src/component.php @@ -123,8 +123,6 @@ $fontStyles = ''; if ($params_FontScheme) { if (stripos($params_FontScheme, 'https://') === 0) { - $this->getPreloadManager()->preconnect('https://fonts.googleapis.com/', ['crossorigin' => 'anonymous']); - $this->getPreloadManager()->preconnect('https://fonts.gstatic.com/', ['crossorigin' => 'anonymous']); $this->getPreloadManager()->preload($params_FontScheme, ['as' => 'style', 'crossorigin' => 'anonymous']); $wa->registerAndUseStyle('fontscheme.current', $params_FontScheme, [], [ 'media' => 'print', diff --git a/src/index.php b/src/index.php index 795669a..85ef9bd 100644 --- a/src/index.php +++ b/src/index.php @@ -149,8 +149,6 @@ $fontStyles = ''; if ($params_FontScheme) { if (stripos($params_FontScheme, 'https://') === 0) { - $this->getPreloadManager()->preconnect('https://fonts.googleapis.com/', ['crossorigin' => 'anonymous']); - $this->getPreloadManager()->preconnect('https://fonts.gstatic.com/', ['crossorigin' => 'anonymous']); $this->getPreloadManager()->preload($params_FontScheme, ['as' => 'style', 'crossorigin' => 'anonymous']); $wa->registerAndUseStyle('fontscheme.current', $params_FontScheme, [], [ 'media' => 'print', diff --git a/src/offline.php b/src/offline.php index 00f7f03..f6ca9fb 100644 --- a/src/offline.php +++ b/src/offline.php @@ -135,7 +135,6 @@ if (class_exists('\Joomla\Component\Users\Site\Helper\RouteHelper')) {