LiteSpeed Google Font error




Wordpress LScache Plugin: LiteSpeed Google Font error

Last Updated on: Wed, 15 Apr 2026 00:00:02
When I have page optimization enabled, I have trouble getting my Google Fonts to load correctly. When logged out (cached), my site requests https://fonts.googleapis.com/css?family=XXX:wght@700&display=swap and my Google Font does not load in bold. When logged in (not cached), my site requests https://fonts.googleapis.com/css2?family=XXX:wght@700&display=swap and the font loads correctly. So the omission of the 2 in the Google Font URL is causing the font-weight error. But when I disabled Load Google Fonts Asynchronously to try to fix the issue, my page no longer requests the font library. My LiteSpeed report is YTCQRKRV. Thanks. may I know where exactly did that css2? added ? When LiteSpeed caches my page, a script requests the font: WebFontConfig= google: families:[ Bitter:wght@700 ] if ( typeof WebFont === object && typeof WebFont.load === function ) WebFont.load( WebFontConfig ) and the font doesnt load correctly. When the page isnt cached, my theme serves the font as a HTML : Reason: formatting please try set Font Display Optimization to default, purge all , see how it goes My site was already set to this setting. But toggling this option on and off and purging all in between results in the same problem. try turn off all CSS options , purge all I think a conflict between my theme and the plugin was causing my issue. My theme had been configured to prevent Google Fonts from being render-blocking. Once I disabled this functionality, turning off Load Google Fonts Asynchronously in LiteSpeed fixed the issue.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference