• optimize-css.php line 105 uses preg_replace_callback which, for my theme (generatepress) causes a double-replacement and double-inlining of google fonts due to the fact my theme supplies it’s own <link rel="preload as="style"> for google fonts. It also triggers the preconnect twice up in the header.

The topic ‘Theme font preload causes double CSS’ is closed to new replies.