According to the Lighthouse report, fonts should be preloaded because they increase the number of chaining critical requests.
I followed the instructions and added a link to html file as: (while trying to figure out what can be causes to this issue, i tried the same font with multiple paths just to be sure)
<link rel="preload" href="./resources/fonts/CoreSansC-45Regular.f29025b6.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../clientlib-all/resources/fonts/CoreSansC-45Regular.f29025b6.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/resources/fonts/CoreSansC-45Regular.f29025b6.woff2" as="font" type="font/woff2" crossorigin>
but report was not changed.
Do you have any ideas, what can be the problem? Is this AEM's default behaviour about preloading?
Views
Replies
Total Likes
Hi
Please check this video, the font section
I watched the video and applied exactly the same solution.
It's just a one liner code, there is no chance to make error, but didn't work.
Check the following
Thanks for the reply it didn't work then I realized in the network tab content-type for the font returns application/octet-stream
However in the head I declare type as a font/woff2
Could it be the reason?
Views
Likes
Replies
Views
Likes
Replies