gpt4 book ai didi

css - Google 字体阻止 css 资源

转载 作者:行者123 更新时间:2023-11-28 02:04:32 25 4
gpt4 key购买 nike

最佳答案

如果您想在使用 Google 字体时摆脱阻塞的 CSS 资源,有一种方法可以使用 Autoptimize 来实现。

  1. 在 Autoptimize 中,选择 Extra 选项卡,勾选 Remove Google Fonts。
  2. 复制all content in Google Fonts link上面,粘贴到你的 style.css 文件。保存它。
  3. 完成

优点:

  • 您摆脱了阻塞的 CSS 资源。
  • 您为访问者保存了 1 个请求。

缺点:

如果你想换一个谷歌字体,你必须再次执行上述所有步骤。

关于css - Google 字体阻止 css 资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49094909/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com