【问题标题】:Can not figure out where these google web fonts are coming from无法弄清楚这些谷歌网络字体来自哪里
【发布时间】:2020-01-02 00:18:20
【问题描述】:

我正在尝试使用 Yellow Lab Tools 和 GTmetrix 等不同类型的工具优化我的网站,当我检查首页中加载了哪些网络字体时,我发现这两个网络字体链接我没有认识。

https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxM.woff (19.4 KB) https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmEU9fBBc-.woff (19.5 KB)

我不知道它们的用途和用途。 有什么办法可以停止加载这两种网页字体?

我已经检查了我的 css 文件和 js 文件以及所有内容,但我似乎找不到解决方案。

这是我网站的首页。

http://run-journey.com/

我在我的网站中使用了唯一的字体。


@font-face {
  font-family: "Noto Sans JP";
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src: 
    url('/fonts/NotoSans_Regular.woff2') format('woff2'), 
    url('/fonts/NotoSans_regular.woff') format('woff'),
    url('/fonts/NotoSans_regular.ttf') format('truetype');
}

@font-face {
  font-family: "Noto Sans JP";
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src: 
    url('/fonts/NotoSans_Bold.woff2') format('woff2'), 
    url('/fonts/NotoSans_bold.woff') format('woff'),
    url('/fonts/NotoSans_bold.ttf') format('truetype');
}


@font-face {
  font-family: "Lato";
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src: 
    url('/fonts/lato-v15-latin-regular.woff2') format('woff2'), 
    url('/fonts/lato-v15-latin-regular.woff') format('woff'),
    url('/fonts/lato-v15-latin-regular.ttf') format('truetype');
}

@font-face {
  font-family: "Lato";
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src: 
    url('/fonts/lato-v15-latin-700.woff2') format('woff2'), 
    url('/fonts/lato-v15-latin-700.woff') format('woff'),
    url('/fonts/lato-v15-latin-700.ttf') format('truetype');
}

任何建议将不胜感激。谢谢。

【问题讨论】:

    标签: fonts request webfonts google-fonts roboto


    【解决方案1】:

    我检查过了。 你的字体是拉托语!你的字体没有问题。我在您的网站上找不到这两个链接。

    【讨论】:

    • 是的。我用 Noto Sans JP 来写日文文本,用 Lato 来写英文。这就是为什么我不知道如何获得“roboto”字体的这两个链接。
    • 但我看不到这些链接。我的意思是你的字体没有问题。删除您的浏览器缓存。
    • 您会运行测试并检查是否可以在此处看到这些链接吗? yellowlab.tools 运行测试并检查“Webfonts 编号”部分。它说 7,其中包括这两个链接、我的字体的 4 个链接和我正在使用的图标链接。
    猜你喜欢
    • 2021-06-27
    • 2019-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-07
    • 2020-11-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多