Google fonts; avoid too big transients when loading fonts #28119
Labels
[Feature] Google Fonts
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
Impacted plugin
Jetpack
What
Google Fonts module requests and caches all the fonts in one request, which might fail.
How
Part of #28118
Fonts API gets requested in backend in one big request, then cached, and returned styles are inlined at the site, both at the wp-admin and frontend of the site.
Admin side requests all the fonts (including weights 100—900 and styles) in one request, instead of requesting them gradually. At frontend fewer fonts are typically added, depending on how many were used to design the site.
When there are too many fonts, this results in over 10mb transients which fails. This happened when we started again adding more fonts (one, two) and request just grew too big. (See p1672355026291499-slack-jetpack)
Potential solutions:
The text was updated successfully, but these errors were encountered: