How to prevent fonts.gstatic.com/stats URLs from throwing console errors?
Open
- Dominant language
- HTML
- Stars
- 20.5k
- Forks
- 2.9k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 95
Description
When including the Oswald font on our site and serving it via https, Console spits out the warning
"Failed to decode downloaded font: https://fonts.gstatic.com/stats/Oswald/normal/400"
Code added to style.css
@import url('https://fonts.googleapis.com/css?family=Oswald:400,700'); or
@import url('//fonts.googleapis.com/css?family=Oswald:400,700');
calls
https://fonts.gstatic.com/stats/Oswald/normal/400
and then outputs the warning
Failed to decode downloaded font: https://fonts.gstatic.com/stats/Oswald/normal/400
in chrome devtools > console.
It does not warn about 700 weight, for some reason. When serving our site via http the warning is gone.
Contributor guide
Assessment
This issue has not been assessed yet.