Error Google Font (subset)
-
Hello, first of all, congratulations on the excellent plugin!
I’m trying to use this option:
Combine and load fonts asynchronously with webfont.js
However I am getting the following error in console:
The “& subset = ,,,” parameter at the end of the generated url is causing an error 404 and the fonts are not loaded:
I do not know if it’s something related to my script call:
Before I used:
wp_enqueue_style (‘Gloria Hallelujah’, ‘//fonts.googleapis.com/css?family=Gloria+Hallelujah’, false);
wp_enqueue_style (‘Titillium Web’, ‘//fonts.googleapis.com/css?family=Titillium+Web:300,400,600,700’, false);Then to test, I moved to:
wp_enqueue_style (‘google-fonts’, ‘//fonts.googleapis.com/css?family=Gloria+Hallelujah|Titillium+Web:300,400,600,700’, false);
Now, also to test, I’m using this:
wp_enqueue_style (‘google-fonts’, ‘//fonts.googleapis.com/css?family=Gloria+Hallelujah&display=swap%Titillium+Web:300,400,600,700&display=swap&subset=latin-ext’, false);
But anyway I get the error on the console.
Just load the sources I use other options like the one I’m currently using:
Combine and preload in head (fonts load late, but are not render-blocking)
This causes a delay in loading in PageSpeed.
Any suggestions on how I can solve it?
Thanks!
- The topic ‘Error Google Font (subset)’ is closed to new replies.