Font file slowing down page loading
-
When I run a Lighthouse audit on my site, I get the following comment:
Consider using
<link rel=preload>
to prioritize fetching resources that are currently requested later in page load.And the resource listed is https://www.ronitbaras.com/wp-content/plugins/wp-responsive-menu/assets/fonts/wprmenu.ttf?p8o4s0
To resolve this, the plugin would have to add the following to the HEAD:
<link rel="preload" href="FONT-URL" as="font">
However, this is not trivial, because each type of browser loads a different font file format.
Using a script to detect browser capabilities will cause other problems (render blocking), so that’s not a good idea either.
This leaves us with removing the use of the special menu font and using CSS instead. From what I can see, the only use of the font is for is the open/close triangles/arrows.
Please consider switching to using carets or ::before elements. See the desktop menu on https://www.plastic2go.com.au/product-category/plastic-crates/#sidebar1, which uses carets in the main menu and the “Products by Category” widget.
The page I need help with: [log in to see the link]
- The topic ‘Font file slowing down page loading’ is closed to new replies.