-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fonts are sent without gzip compression #3564
Comments
As far as I can tell, these fonts are sent without compression regardless of whether the request says it can handle gzip compression. I will look to see if I can get this resolved. |
I'm thinking perhaps the easiest way to solve this is just to change the theme to bundle woffs instead of TTFs. |
I've looked into changing the TTF file in the theme to WOFF(2) files, but I haven't found the exact same version of the lato font yet. Even if I use new TTF files I get a slightly different look in Chrome on macOS, probably due to increased hinting information in newer versions of the font. |
This is now resolved. After we moved all our static media to |
The fonts used (Lato and Roboto) are not sent using gzip compression. This makes them responsible for the bulk of the traffic on an initial page load. See the blue bars in the following graph:

Suggestion:
Turn on gzip compression for the following types in the RTD nginx config.
application/font-sfnt
(or old styleapplication/x-font-ttf
)application/font-sfnt
(or old styleapplication/x-font-otf
)application/vnd.ms-fontobject
This may have already been fixed, as suggested by #2955 (comment), but the actual PR and files are not publicly visible so it cannot be verified if the mime types for these fonts are set up properly. This also does not mention otf fonts.
Note that woff(2) fonts do not seem to benefit from gzip compression.
The text was updated successfully, but these errors were encountered: