Magento 2 where to add `<link rel=preload>`
-
15-04-2021 - |
Pergunta
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.
Nenhuma solução correta
Outras dicas
Hei!
Have a look on this. I guess you can add that on the HTML head.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange