Font files are loaded twice
Table of Contents
In some situations you might see requests in your request waterfall, which appear to be duplicates. The two main reasons this happens are the following:
Subset(s)
If the filenames have subtle differences, e.g.
- https://yoursite.url/wp-content/uploads/omgf/stylesheet-name/roboto-latin.woff2
- https://yoursite.url/wp-content/uploads/omgf/stylesheet-name/roboto-latin-ext.woff2
This is due to the Used Subset(s) setting. By default, this is set to include Latin and Latin Extended. This default setting covers all languages (and alphabets) used in the American and European continent.
If the font used on your site, doesn’t support Variable Fonts, then for each subset you select, a separate font file is required.
Following the above example, you might not need the Latin Extended subset (this is only required for Eastern European languages, which don’t use the Greek or Cyrillic alphabet, e.g. Hungarian and Czech) so deselecting the Latin Extended option in the Used Subset(s) setting will chop your font file requests in half!
Variable Fonts
If exactly the same filenames are loaded multiple times, then this is actually good news; it means that your font supports Variable Fonts. The duplicate entry in your request waterfall simply indicates that the same font-file was loaded (not downloaded) or used multiple times.