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>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user