Wrong handling of preloaded Google Fonts URL
-
Autoptimize doesn’t really know how to handle this kind of URL when trying to preload it:
https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap
It ends up generating this code in the front-end:
<link rel="preload" href="'https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Lato:ital" as="other"> <link rel="preload" href="wght@0" as="other"> <link rel="preload" href="400;0" as="other"> <link rel="preload" href="700;1" as="other"> <link rel="preload" href="400;1" as="other"> <link rel="preload" href="700&display=swap'" as="other">
Since each URL needs to be separated by a comma in the preloaded resources field, that brakes the URL in parts that shouldn’t be. Is there any way around this?
It would be nice to have the option to choose what those preloaded resources are treated as too ??
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Wrong handling of preloaded Google Fonts URL’ is closed to new replies.