google / google/fonts

How to prevent fonts.gstatic.com/stats URLs from throwing console errors?

Open
#937 35 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.