+1 for this solution. Having the same issue.
@theresmorgan
In the meantime I found a working solution as mentioned in this comment by adding:
... type="font/woff" crossorigin />
... type="font/ttf" crossorigin />
... type="font/svg" crossorigin />
The full code with the change can be found in this gist.
@brainstormteam Please implement the preloading of the font files in the theme, I kinda don’t understand why this hasn’t been done yet since page speed is the main selling proposition of Astra.
Just noticed the following warning in the console of the Chrome web developer tools:
<link rel=preload> has an unsupported 'type' value
Looks like there’s still no perfect solution out there.
Hello @nicoter and others,
Sorry for the delay. I have an update in this regard from our developers.
We have planned to release the same in our upcoming 2-3 updates, and we are releasing SVG Icons for Astra.
Also, we will be providing a filter using which the Astra font file will not be loading anymore and all the icons will get converted to SVG. The filter will be based to provide backward compatibility.
The development for this feature has begun keeping in mind the preload font issue, which will be fixed, once users will switch to SVG Icons.
For now, you can remove the astra.svg font in the <link> tag. Only astra.woff2 should work for all the evergreen browsers.
I hope that helps.
Regards,
Suman
@brainstormteam @nicoter
Is there any news with this? Did you find any other solution?
Thank you very much.
Hello @babylon323
As mentioned previously in the last response, we do have the same lined up.
This will surely be patched in the update releasing in the later part or soon of the next month.
We will keep you guys posted. Stay tuned! 🙂
We appreciate your patience and understanding.
Regards,
Suman
I have the same trouble (Astra Pro lifetime). Any news here? Didn’t see it in the changelog.
Hello @ideesigner
Sorry for the delay, some priority tasks came up related to WP 5.5 causing the delay.
In the meanwhile, you can use the following code provided here.
As I checked I can see the status of the task and it has been lined up for the upcoming next release.
Looking forward to getting this added with the release. I hope that helps. Let us know how it goes.
Regards,
Suman 🙂