Bug Font Swap issues
-
Hi,
I have been trialing Jetpack Boost to add the one function that is not included within my current optimisation stack – Critical CSS.
This is the second trial using a simple website based on a premium theme with heavy customisations for performance.
The Critical CSS generator causes a CLS shift because Jetpack Boosts CSS is inserted BEFORE my Font Preloads.
I normally add font preloads via wp_head hook in functions.php with a priority 1.
In order to get them to load first. I had to add them manually to header.php before WP_head.
I also had to add @fontface critical CSS manually above Jetpack Boost.
This still is not quick enough to prevent the shift but minimises it.
Is there a better way to insert code before Jetpack Boost from functions.php instead of using header.php?
You can see the modified version live on the link attached to this post.
The page I need help with: [log in to see the link]
- The topic ‘Bug Font Swap issues’ is closed to new replies.