使用Google字体或主机字体 [英] Use Google font or host font myself

查看:112
本文介绍了使用Google字体或主机字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我目前的专案中,我使用目前在googleapis.com上代管的字型。字体是免费,所以我可以得到一个副本,并把它放在我的服务器上。

On my current project I am using a font which is currently hosted on googleapis.com. The font is "free" so I can get a copy and put it on my server.

我的问题是;在Google上托管它有什么好处吗?在我自己的服务器上拥有它?我已经有两个其他付费字体托管​​在我自己的服务器(使用@ font-face与fallbacks)。所以我想把另一个字体,把它所有在一个地方。

My question is; is there any benefit to hosting it on Google vs having it on my own server? I've already got two other paid fonts hosted on my own server (using @font-face with fallbacks). So I was thinking of bringing the other font across, having it all in one place.

但我不知道如果有什么我不在考虑?

But I wasnt sure if there is anything I'm not considering? Is google fonts significantly faster/better performance etc?

推荐答案

根据服务器的带宽和负载,Google可能比您的服务器更快。但是在Google上托管的一些负面因素是:

Google could be faster than your server depending on your server's bandwidth and load. However some negatives to hosting on google are:


  • 该项目可能会被删除,导致您的网站出现问题

  • googleapis.com可能是一个额外的DNS查询,可为您的网站加载过程增加时间。

  • 我个人不喜欢热链接

阳性:


  • 如果dns条目是缓存可能更快的性能


这篇关于使用Google字体或主机字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆