Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTF preload despite woff2 being available #92

Closed
Munter opened this issue May 27, 2020 · 1 comment · Fixed by #97
Closed

TTF preload despite woff2 being available #92

Munter opened this issue May 27, 2020 · 1 comment · Fixed by #97

Comments

@Munter
Copy link
Owner

Munter commented May 27, 2020

On https://5ece67b9b98a6300076dd0c6--mntr.netlify.app/ javascript to preloading is referencing the Noto Serif__subfont italic variant in a TTF format.

<link rel="preload" as="font" type="font/woff2" crossorigin="anonymous" href="/subfont/Open_Sans-700-6dc750c288.woff2">
<link rel="preload" as="font" type="font/woff2" crossorigin="anonymous" href="/subfont/Noto_Serif-400-32cc1ee314.woff2">
<link rel="preload" as="font" type="font/woff2" crossorigin="anonymous" href="/subfont/Open_Sans-400-3683a41eea.woff2">
<link rel="preload" as="font" type="font/woff2" crossorigin="anonymous" href="/subfont/Noto_Serif-700-673f8434d8.woff2">
<script>
try {
  new FontFace(
    'Open Sans__subset',
    "url(/subfont/Open_Sans-700-6dc750c288.woff2) format('woff2'), url(/subfont/Open_Sans-700-21d7534bff.woff) format('woff')",
    { 'font-weight': 700 }
  ).load(),
    new FontFace(
      'Noto Serif__subset',
      "url(/subfont/Noto_Serif-400-32cc1ee314.woff2) format('woff2'), url(/subfont/Noto_Serif-400-bf5454c658.woff) format('woff')",
      {}
    ).load(),
    new FontFace(
      'Open Sans__subset',
      "url(/subfont/Open_Sans-400-3683a41eea.woff2) format('woff2'), url(/subfont/Open_Sans-400-feb5067747.woff) format('woff')",
      {}
    ).load(),
    new FontFace(
      'Noto Serif__subset',
      "url(/subfont/Noto_Serif-700-673f8434d8.woff2) format('woff2'), url(/subfont/Noto_Serif-700-31942be193.woff) format('woff')",
      { 'font-weight': 700 }
    ).load(),
    new FontFace(
      'Noto Serif__subset',
      "url('https://fonts.gstatic.com/s/notoserif/v8/ga6Kaw1J5X9T9RW6j9bNfFImajC-.ttf') format('truetype')",
      { 'font-style': 'italic' }
    ).load();
} catch (e) {}
</script>
<link rel="stylesheet" href="/subfont/fonts-b7005f3a36.css">

These were all default settings run on a page with a classic use of google fonts:

<link rel=stylesheet href="https://fonts.googleapis.com/css?family=Noto+Serif:400,700,400i|Open+Sans:700,400">
@papandreou
Copy link
Collaborator

Addressed by #97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants