From 34057518c8d3180e20dd0e93a71e003f7e902a3d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Mar 2026 20:43:39 +0000 Subject: [PATCH] Remove Google Fonts CDN dependencies - Update templateDetails.xml to use local font CSS files only - Add Noto Sans and Fira Sans as local font options - Remove Google Fonts CDN preconnect links from index.php - Remove Google Fonts CDN preconnect links from component.php - Remove Google Fonts CDN preconnect link from offline.php Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com> --- src/component.php | 2 -- src/index.php | 2 -- src/offline.php | 1 - src/templateDetails.xml | 12 +++++------- 4 files changed, 5 insertions(+), 12 deletions(-) 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')) {