推荐一个wordpress后台加速插件:Disable Google Fonts

02October

4:12 PM

205 次浏览

0 条评论

最近总发现打开wordpress时总是很慢,感觉应该是加载字体上面花费了大量的时间,所以决定还是屏蔽google字体来加速后台的打开速度。

屏蔽google字体有很多办法,可以通过在function.php里增加了代码来实现,但我感觉这个方法有点弊端。当某天如果google字体有畅通的话又需要去修改代码。

于是我使用了插件:Disable Google Fonts,开启这个插件的后来,我发现只是一个简单的class,不过屏蔽的字体真是多。看到源代码时我也吓一跳,有那么多备选方案啊。

展示下它屏蔽的那些字体:

  • arimo
  • Assistant
  • Atma
  • Crimson Text
  • Dancing Script
  • Droid sans
  • Google font on
  • Google Font for body text
  • Google Font for heading text
  • Google Font for menu text
  • Google fonts
  • Great Vibes
  • greatvibes
  • Hind
  • Indie Flower
  • Josefin Sans
  • Lato
  • Lobster
  • Lora
  • Merriweather
  • montserrat
  • Muli
  • Nunito Sans
  • Open Sans
  • opensans
  • Oswald
  • oswald
  • Oxygen
  • Pacifico
  • pacifico
  • Poppins
  • playball
  • Playfair Display
  • Product Sans
  • pt_sans
  • Raleway
  • Roboto
  • roboto
  • Roboto
  • Roboto Condensed
  • Roboto condensed
  • roboto_condensed
  • robotocondensed
  • Roboto Slab
  • Sail
  • Scada
  • scada
  • Shadows Into Light

没有细细研究,不过使用后感觉开启速度的确快了很多。

留言评论
称呼
邮箱
网址
展开