Title: Google Webfont Optimizer
Author: sigurdurg
Published: <strong>2014 年 11 月 13 日</strong>
Last modified: 2015 年 6 月 22 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/google-webfont-optimizer.svg)

# Google Webfont Optimizer

 作者：[sigurdurg](https://profiles.wordpress.org/sigurdurg/)

[下载](https://downloads.wordpress.org/plugin/google-webfont-optimizer.zip)

 * [详情](https://cn.wordpress.org/plugins/google-webfont-optimizer/#description)
 * [评价](https://cn.wordpress.org/plugins/google-webfont-optimizer/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/google-webfont-optimizer/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/google-webfont-optimizer/#developers)

 [支持](https://wordpress.org/support/plugin/google-webfont-optimizer/)

## 描述

Most modern websites and website themes use Google Fonts to make their website typeface
nice to look at and read.
 Some plugins even include Google Fonts to make their 
plugin fancy.

Unfortunately, all this adds up to a lot of different Google Fonts being requested
for each webpage, making the website slower with a lower Google PageSpeed score.

Ultimately, it lowers your visitor’s experience and you could drop down in the search
results.

Google already solved this problem on their servers by allowing you to ask for multiple
fonts in a single request, but that doesn’t fix the problem on YOUR website.

Your website asks for all these different fonts in different requests because there
hasn’t been a way to automatically find all these font requests and optimize them.

.. until now.

Finally there’s a way to do this _automagically_, and that’s where Google WebFont
Optimizer helps your site.

Google WebFont Optimizer finds every Google Fonts request, bulks them all together
so your website only asks Google once for the fonts, instead of multiple times.

This makes:

 * **Your Website faster**
 * Your visitors happier
 * Your Google PageSpeed score increase

You only have to install and activate the plugin, and the plugin takes care of everything
else.

This plugin was created to make our client’s websites faster to load with a higher
Google PageSpeed score, and now it’s yours – free!

If you want to discover more about how you can make your WordPress website faster,
go to [the Quick Falcon website](http://quickfalcon.com/).

The plugin works best with W3 Total Cache

You can find the source code on GitHub – https://github.com/sigginet/google-webfont-
optimizer

## 屏幕截图

[⌊Admin menu⌉⌊Admin menu⌉[

Admin menu

[⌊Before and After Font Optimizing⌉⌊Before and After Font Optimizing⌉[

Before and After Font Optimizing

## 安装

 1. Unzip and upload `google-webfont-optimizer` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. (Optional) Configure the plugin through Settings->GWFO settings

## 常见问题

  Installation Instructions

 1. Unzip and upload `google-webfont-optimizer` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. (Optional) Configure the plugin through Settings->GWFO settings

  Does this plugin make my website faster?

If your website uses Google Fonts, yes.

  How can I find out if I’m using Google Fonts?

Go to http://builtwith.com/ and type in your website URL.

Once builtwith finishes analyzing your website, go all the way down to “Widgets”(
around the center of page) and see if Google Fonts API is listed.
 If Google Fonts
API is listed, your website uses Google Fonts and you should use this plugin.

  What’s the difference between “HTML links in the header (no FOUT)” and “Javascript
Web Font Loader (higher PageSpeed Score)”?

“HTML links in the header (no FOUT)” adds a render-blocking stylesheet link in your
header. This can lower your Google PageSpeed Score, but removes all Flash-Of-Unstylized-
Text (FOUT).

“Javascript Web Font Loader (higher PageSpeed Score)” uses a non render blocking
Javascript code to load the Google Fonts. This makes your website display faster,
but you may see some FOUT in the first milliseconds when you go between pages on
your website. – This is the recommended option

## 评价

![](https://secure.gravatar.com/avatar/d62898d7ab432136e947f55600f04c43dd906a4d751943a7fb0f815eb3693c45?
s=60&d=retro&r=g)

### 󠀁[old and doesn’t work](https://wordpress.org/support/topic/old-and-doesnt-work/)󠁿

 [connectagency](https://profiles.wordpress.org/connectagency/) 2017 年 12 月 19
日

made my website slower, not faster. didn’t strip out font styles not actually used
on the site and duplicated font styles multiple times in request.

![](https://secure.gravatar.com/avatar/eb132f9622d609e72e6ba9fe7d26ac5db60fd74b765b83767e7f8945af0be035?
s=60&d=retro&r=g)

### 󠀁[Worked Great for Me](https://wordpress.org/support/topic/worked-great-for-me-27/)󠁿

 [joereadpk](https://profiles.wordpress.org/joereadpk/) 2017 年 8 月 7 日

Worked a charm for me, cleaned up all off my font files exactly as needed!

![](https://secure.gravatar.com/avatar/83cd044ee7c454173cf8b27d6fc6a946a5fee79b42140dd7ba5805bdfa318ed7?
s=60&d=retro&r=g)

### 󠀁[Works very well](https://wordpress.org/support/topic/works-very-well-266/)󠁿

 [José](https://profiles.wordpress.org/alquimia/) 2017 年 6 月 14 日

Works very well

![](https://secure.gravatar.com/avatar/d89a1383b679aa0b100125fcba731c8f35feb0300d00e7d5d447fac90d2fe59a?
s=60&d=retro&r=g)

### 󠀁[PageSpeed is green! Read how…](https://wordpress.org/support/topic/pagespeed-is-green-read-how/)󠁿

 [silkway](https://profiles.wordpress.org/silkway/) 2017 年 6 月 8 日

First I thought that plugin did not work and deleted it. Then Inspector showed me
that my site is really goes to google fonts and I need the plugin. I installed it
again and started to fine tune my other plugins. Fast Velocity Minify – Enable options:
Strip HTML comments, Inline all header CSS files, Inline all footer CSS files, Enable
defer of JS for Pagespeed Insights. WP Super Cache – leave everything in default
Clear cache in Fast Velocity Minify. It will show that it also cleared WP Super 
Cache DO NOT BELIEVE it. Clear and renew cache in Super Cache. Go to your site and
check that everything looks alright. Go to PageSpeed, my results 91/97 for mobile
and desktop. For Google Analytics use Complete Analytics Optimization Suite (CAOS)
plugin 🙂

![](https://secure.gravatar.com/avatar/d282f9fc09ca3044538db9527de5a5a414ae28522bf5324d3f16ccdb7cafb6a3?
s=60&d=retro&r=g)

### 󠀁[Great work](https://wordpress.org/support/topic/great-work-506/)󠁿

 [alexlii](https://profiles.wordpress.org/alexlii/) 2017 年 4 月 16 日

Great work. I am runing a wordpress Mu, and it perfectly fast my site. Alex

![](https://secure.gravatar.com/avatar/6e342cd151b197b3d7fc4555bdddc6e857c31c8c478d43ada3e75ff92cc3996e?
s=60&d=retro&r=g)

### 󠀁[does not work!](https://wordpress.org/support/topic/does-not-work-766/)󠁿

 [likocorp](https://profiles.wordpress.org/likocorp/) 2017 年 3 月 2 日

dont spend your time!

 [ 阅读所有18条评价 ](https://wordpress.org/support/plugin/google-webfont-optimizer/reviews/)

## 贡献者及开发者

「Google Webfont Optimizer」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ sigurdurg ](https://profiles.wordpress.org/sigurdurg/)

[帮助将「Google Webfont Optimizer」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/google-webfont-optimizer)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/google-webfont-optimizer/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/google-webfont-optimizer/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/google-webfont-optimizer/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/google-webfont-optimizer/)。

## 更新日志

#### 0.2.4 &amp bug

Fixed a bug where fonts weren’t being removed when & is included.
 Thanks to Jan
Jaap for reporting the bug (and the fix)

#### 0.2.3 PHP warning bug

Fixed a PHP warning bug.

#### 0.2.2 Bugfix for empty google font links

Fixed a bug where invalid Google Fonts links with empty font name will be ignored.

#### 0.2.1 Bugfix for link html

Fixed a bug where “\n” appears on top of your page when using HTML links.

#### 0.2.0 First release

This version added configurable options (HTML links and JS Web Font Loader) and 
is the first official release in the WordPress repository.

#### 0.1.0 Pre-release

This version was created for our clients, but it didn’t have any configurable options.

## 额外信息

 *  版本 **0.2.4**
 *  最后更新：**9 年前**
 *  活跃安装数量 **700+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.2.39**
 *  语言
 * [English (US)](https://wordpress.org/plugins/google-webfont-optimizer/)
 * 标签
 * [bandwidth](https://cn.wordpress.org/plugins/tags/bandwidth/)[cascading style sheet](https://cn.wordpress.org/plugins/tags/cascading-style-sheet/)
   [javascript](https://cn.wordpress.org/plugins/tags/javascript/)[Optimize](https://cn.wordpress.org/plugins/tags/optimize/)
   [performance](https://cn.wordpress.org/plugins/tags/performance/)
 *  [高级视图](https://cn.wordpress.org/plugins/google-webfont-optimizer/advanced/)

## 评级

 3.6 星（最高 5 星）。

 *  [  10 条 5 星评价     ](https://wordpress.org/support/plugin/google-webfont-optimizer/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/google-webfont-optimizer/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/google-webfont-optimizer/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/google-webfont-optimizer/reviews/?filter=2)
 *  [  5 条 1 星评价     ](https://wordpress.org/support/plugin/google-webfont-optimizer/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/google-webfont-optimizer/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/google-webfont-optimizer/reviews/)

## 贡献者

 *   [ sigurdurg ](https://profiles.wordpress.org/sigurdurg/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/google-webfont-optimizer/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://quickfalcon.com/)