Make WordPress Core

#64114 closed defect (bug) (duplicate)

Several themes include `eot` versions of the Genericons font

Reported by: peterwilsoncc Owned by:
Priority: normal Milestone:
Component: Bundled Theme Version:
Severity: normal Keywords:
Cc: Focuses: performance

Description

The Twenty -thirteen, -fourteen, -fifteen and -sixteen themes each include the Genericons font.

In each of these themes the @font-face definition is split out in to two with something similar to the following, depending on the age of the theme:

@font-face {
  font-family: "Genericons";
  src: url("./Genericons.eot");
  src: url("./Genericons.eot?") format("embedded-opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Genericons";
  src: url("data:application/x-font-woff;charset=utf-8;base64,[...SNIP...]") format("woff"),
       url("./Genericons.ttf") format("truetype"),
       url("./Genericons.svg#Genericons") format("svg");
  font-weight: normal;
  font-style: normal;
}

In Firefox 144/macOS, this causes the font to be downloaded twice, once as an EOT and once using the inline WOFF file snipped from the code above.

As the EOT font is used to support Internet Explorer 8 and earlier, it can be safely removed without affecting the rendering of the font for anyone using a browser released in the last 14 years.

Change History (3)

#1 @westonruter
12 months ago

  • Keywords needs-patch good-first-bug added
  • Milestone Awaiting Review → 6.9

#2 @sabernhardt
12 months ago

  • Keywords needs-patch good-first-bug removed
  • Milestone 6.9

Already have a ticket and possible patch: #62128

#3 @sabernhardt
12 months ago

  • Resolution → duplicate
  • Status new → closed

Duplicate of #62128.

Note: See TracTickets for help on using tickets.