gpt4 book ai didi

mobile-safari - 将 Google Web 字体用于仅限移动设备的网站有任何性能问题吗?

转载 作者:行者123 更新时间:2023-12-02 00:24:34 24 4
gpt4 key购买 nike

我想使用 css3 和 google 网络字体进行导航(出于性能原因而不是图形)。

有没有人有这方面的经验?将 Google Web 字体用于移动客户端是否有缺点/限制?谢谢。

最佳答案

What about performance? Will web fonts slow down my page?

If a page uses web fonts, then the font files have to be downloaded to the site visitor's computer before they can be displayed initially. The font files are served compressed for a faster download. After that initial download, they will be cached in the browser. As the Google Web Fonts API becomes widely used, your visitors will be likely to already have the font you're using in their browser cache when they visit your page.

In general, however, you should keep an eye on the size of the font files you are serving. Also be aware that using web fonts may result in the browser making more HTTP requests than would otherwise be necessary.

Compared to using images to display a lot of text on a page, web fonts are likely to enhance the performance (and maintainability, and accessibility) of your page. In other situations, however, they might add to the overall weight of your page.

引自https://developers.google.com/webfonts/faq#Performance

关于mobile-safari - 将 Google Web 字体用于仅限移动设备的网站有任何性能问题吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9353767/

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