Problem/Motivation
I did some performance testing of Drupal CMS recently and noticed that Olivero loads five font files for two font faces, at a total of about 100kb.
I think it would be worth considering whether we'd be better off (or not worse off) with two variable fonts - this would be two files then, obviously need to see how big the font file would be.
Comments
Comment #2
catchComment #4
catchComment #5
wim leersI noticed this too when I upgraded my site from Drupal 7 to 10.
By far the largest jump in page weight is these 5 (!!!) fonts.
Comment #6
rikki_iki commentedMetropolis doesn't have a variable font available that I can find.
Lora does, though it's Italic variant is a separate file (glyphs are too different to simply slant).
There's actually 6 fonts all up in Olivero's fonts.css... 3x Metropolis weights (roman), 2x Lora weights (roman) and 1x Lora italic.
I'm not sure if replacing Metropolis with a similar font that has a variable version available is on the table, but that would at least get it down to 3 files.
I also note the navigation module is loading Inter variable font - quite a large file too, probably a separate issue.