Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#64114 closed defect (bug) (duplicate)

Several themes include `eot` versions of the Genericons font

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

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
3 months ago

  • Keywords needs-patch good-first-bug added
  • Milestone changed from Awaiting Review to 6.9

#2 @sabernhardt
3 months ago

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

Already have a ticket and possible patch: #62128

#3 @sabernhardt
3 months ago

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #62128.

Note: See TracTickets for help on using tickets.