Priority hints issue with preload priority
-
Priority hints
I preload all fonts except italic but italic is the one that get the highest priority when Chrome picks, which is strange? I don’t have anything in italic above the fold hence the non preload there. This could improve LCP once it’s font an overall performance, as the one that isn’t preloaded shouldn’t have higher priority.
All fonts have importance=”high” but italic which isn’t preloaded has importance=”highest”.
Could you look into adding an importance attribute to the font? Add high on the one preloaded and low on the ones without? And add low to the one that isn’t preloaded?
https://web.dev/priority-hints/Maybe we can not come around this as the one not preloaded don’t have link attribute and only have reference n the stylesheet. I suspect it’s priority highest due to that it’s the first line in the generated additional-fonts.css
Is it possible to sort the file based on the order you have preloaded. So italic 400 comes last in the css file. I’ve inlined the css file as it’s so small. But the only explanation why Chrome give it such high priority I can see is the order of the woff2’s in the stylesheet.
- The topic ‘Priority hints issue with preload priority’ is closed to new replies.