Question: PageSpeed Insights asks to preload icomoon.ttf. I inserted a hook in wp_head with <link rel="preload" href="/fonts/icomoon.ttf" as="font">
but nothing changed.
Check if your href is correct. Make sure it is pointed to the font file URL.
You can do that by locally hosting your font.
You can try uploading it on media library with this guide. -https://docs.generatepress.com/article/adding-local-fonts/#uploading-our-font
After successfully uploading, get its file URL and paste it on the link tag’s href.