Preloading google fonts with Autoptimize
-
I’m trying to get autoptimize to preload Google fonts to improve page speed. The problem is the font I want to preload is a Google Font. Example
This is the font I want to pre-load. If I put it into extra->preload area (the full url) I end up with TWO versions of it in my header like this:
<link rel=”preload” href=”https://fonts.googleapis.com/css?family=PT+Serif%7CFrancois+One&subset=latin%2Clatin-ext&display=swap” as=”other”>
<link rel=”stylesheet” id=”ao_optimized_gfonts” href=”https://fonts.googleapis.com/css?family=PT+Serif%7CFrancois+One&subset=latin%2Clatin-ext&display=swap” /><link rel=”profile” href=”https://gmpg.org/xfn/11″ />
My autoptimize is set to Combine and link in head (fonts load fast but are render-blocking), includes display:swap.
Any suggestions?
- The topic ‘Preloading google fonts with Autoptimize’ is closed to new replies.