Magento 2 where to add `<link rel=preload>`
-
15-04-2021 - |
Question
I'm doing some page speed optimization and it says that I should preload some icons.
I've got this command but I can't find where to add it, they say that It should be added to the <head>
but I'm not sure where. I tried adding it to my default_head_blocks.xml but it broke the site:
<link rel="preload" href="font.woff2" as="font" type="font/woff2" crossorigin>
I've been following this but they don't tell where to add it.
No correct solution
OTHER TIPS
Hei!
Have a look on this. I guess you can add that on the HTML head.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange