Google Fonts: all font faces are printed, even when not in use #34163
Labels
[Feature] Google Fonts
[Focus] Performance
[Platform] Atomic
[Platform] Simple
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Pri] High
[Status] Priority Review Triggered
The guild in charge of triage has been notified of this issue in Slack
Triaged
[Type] Bug
When a feature is broken and / or not performing as intended
Impacted plugin
Jetpack
Quick summary
Core prints all registered fonts in
theme.json
. Since Jetpack's Google Fonts feature registers quite a few fonts, that makes for a lot of additional fonts loaded on each site where the feature is active, even if the fonts are not in use on the site.Steps to reproduce
wp-fonts-local
under the “Elements” tabA clear and concise description of what you expected to happen.
Only active fonts should be loaded on the frontend.
What actually happened
You will see the full list of fonts loaded there.
Impact
All
Available workarounds?
Yes, easy to implement
Platform (Simple and/or Atomic)
Simple, Atomic, Self-hosted
Logs or notes
This was reported here:
The text was updated successfully, but these errors were encountered: