?
avatar Scrabble96
Scrabble96
12 Jan 2019

What needs to be fixed

Cassiopeia template.css line 8:
@import url("https://fonts.googleapis.com/css?family=Fira+Sans:400");

Why this should be fixed

Highlighted in GTMetrix analysis and, to quote Yellow Lab Tools: "It’s bad for performance to use @import because CSS files don't get downloaded in parallel.
You should use <link rel='stylesheet' href='a.css'> instead."

How would you fix it

Either:
Move the request to the head of the index.php file with
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:400" rel="stylesheet">
or include the font in the files and use @fontface

Side Effects expected

Better browser support

avatar Scrabble96 Scrabble96 - open - 12 Jan 2019
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jan 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 Jan 2019
avatar astridx
astridx - comment - 13 Jan 2019

We load the fonts from Google's Server. There are many advantages preventing loading the Google fonts from Google’s servers but save locally. The reasons vary from privacy concerns over caching advantages to reducing file requests from third party servers.

Is there something against not only changing the way you integrate, but also storing the font locally?

avatar hardik-codes
hardik-codes - comment - 25 Jan 2019

@Scrabble96 May I work on this issue?

avatar Scrabble96
Scrabble96 - comment - 25 Jan 2019

@Scrabble96 May I work on this issue?

@hardik-codes
Please, be my guest. My expertise in Joomla core code is very limited. How my suggested solution, or any other solution, is implemented is not my area of expertise.

avatar hardik-codes
hardik-codes - comment - 25 Jan 2019

Then I'll try to implement your solution and create a pull request for the same @Scrabble96

avatar hardik-codes
hardik-codes - comment - 26 Jan 2019

@C-Lodder and @dgrammatiko to which index.php file the above changes are to be made?

avatar hardik-codes
hardik-codes - comment - 26 Jan 2019

Thanks @C-Lodder

avatar C-Lodder
C-Lodder - comment - 26 Jan 2019

@hardik-codes Should just be able to get away with this in the index.php file:

HTMLHelper::_('stylesheet', 'https://fonts.googleapis.com/css?family=Fira+Sans:400');
avatar puneeth2001
puneeth2001 - comment - 11 Feb 2019

@hardik-codes are you still working on the issue, if not I will work on it

avatar hardik-codes
hardik-codes - comment - 11 Feb 2019

@puneeth2001 already a PR is generated for this issue.

avatar roland-d
roland-d - comment - 11 Feb 2019

Closing this as we have a PR #23682

avatar roland-d roland-d - change - 11 Feb 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-02-11 12:58:40
Closed_By roland-d
avatar roland-d roland-d - close - 11 Feb 2019
avatar dgrammatiko
dgrammatiko - comment - 11 Feb 2019

@puneeth2001 read my comments and see if you can come up with the right changes

avatar dgrammatiko
dgrammatiko - comment - 11 Feb 2019

@roland-d that PR is not working as is...

avatar roland-d
roland-d - comment - 11 Feb 2019

@dgrammatiko Let's discuss the issues in the PR itself. Thanks for pointing it out.

avatar hardik-codes
hardik-codes - comment - 11 Feb 2019

@puneeth2001 I'm still working on it

Add a Comment

Login with GitHub to post a comment