[WordPress] 外掛分享: EasyFonts – Host Google Fonts Locally, GDPR Compliant, Faster Loading

首頁外掛目錄 › EasyFonts – Host Google Fonts Locally, GDPR Compliant, Faster Loading
1,000+
安裝啟用
★★★★★
5/5 分(6 則評價)
20 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.3.0 上架:2023-01-24

內容簡介

EasyFonts 是一個輕量化 WordPress 外掛,可以讓你在本地伺服器上快取(Cache)和托管 Google 字型,加快網站速度,讓字型從自己的 URL 加載而非從 Google 加載。使用 EasyFonts,你不再需要依賴外部伺服器來在網站上載入 Google 字型,這可能會減慢你的網站速度,對使用者體驗產生負面影響。

在外掛設置中使用選項下載和使用本地 Google 字型。

功能

使用 <link> 進行 Google 字型的快取和托管加載
在內聯 <style> 中使用 @import 聲明加載本地 Google 字型
使用內聯 <style> 中的 @font-face 聲明托管本地 Google 字型
刪除資源提示(preload, preconnect, dns-prefetch)
刪除 WebFontLoader (webfont.js)

外掛相容

此外掛將與幾乎所有主題和頁面建構器相容。

在本地伺服器上托管 Elementor 的 Google 字型
支援 wpbakery 頁面建構器
在本地伺服器上托管 Divi 或任何其他主題的 Google 字型。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「EasyFonts – Host Google Fonts Locally, GDPR Compliant, Faster Loading」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

EasyFonts is the lightest, fastest WordPress plugin to host Google Fonts locally on your own server. Just activate the plugin, and your Google Fonts are automatically downloaded, cached, and served directly from your domain. No manual uploads, no complex settings, and no external requests.
At only 35KB, EasyFonts is built for absolute performance. Unlike bloated alternatives that take up 2MB of space and require endless configuration, EasyFonts does one job perfectly: it disables external Google Fonts and self-hosts them so your site loads faster, passes Core Web Vitals, and stays strictly compliant with European privacy laws.
Why Host Google Fonts Locally?
When your WordPress site loads fonts from Google’s servers, you face two massive issues:

GDPR (DSGVO) Violations: A German court ruled that sending visitor IP addresses to Google without consent violates GDPR. Sites are actively being fined for this.
Slow Core Web Vitals: Every external connection to fonts.googleapis.com and fonts.gstatic.com adds latency, destroying your Time to First Byte (TTFB) and Largest Contentful Paint (LCP) scores.

EasyFonts eliminates both problems instantly. It rewrites your CSS to serve fonts locally—stopping Google from tracking your users and drastically speeding up your site.
Key Features & Performance Benefits

Modern Variable Font Support (NEW) — Unlike older plugins that download 10+ separate font files for different weights, EasyFonts uses modern browser detection to download a single, highly-optimized Variable Font file. This saves massive amounts of bandwidth.
Combine Font Stylesheets — Merges all locally hosted font CSS into a single, optimized file placed right after . Exact duplicate font faces are automatically removed to reduce HTTP requests.
Fix FOIT with Font Display Control — Force a font-display: swap value on every @font-face declaration to eliminate the “Flash of Invisible Text” and pass Google Lighthouse audits.
Disable Google Fonts — Completely severs all connections to Google’s servers, ensuring 100% GDPR compliance.
Automatic Local Hosting — Detects Google Fonts loaded via stylesheets, @import rules, and inline @font-face declarations.
Clean Resource Hints — Strips unnecessary preconnect, dns-prefetch, and preload tags pointing to external font servers to clean up your .
Bunny Fonts Support — Also processes and locally hosts fonts from fonts.bunny.net.
Auto Cache Clear — Whenever you save settings, the font cache is instantly cleared and regenerated fresh to prevent broken layouts.
Page Builder Compatible — Works flawlessly with Elementor, Divi, WPBakery, GeneratePress, Astra, Kadence, and WooCommerce.

What Makes EasyFonts Beat the Competition?

35KB Size: Competitors weigh between 500KB and 2MB. EasyFonts is 60x smaller.
Zero Database Bloat: Stores only one single option row. No custom tables, no transient spam.
Zero Config Required: Just enable and save. No scanning, no waiting, no manual font selection.
No Premium Upsells: Every pro-level feature (combining CSS, variable fonts, font-display control, deduplication) is 100% free.

How It Works

Install and activate EasyFonts.
Go to Settings → Easy Fonts.
Enable the options you need (most users: enable all checkboxes and set Font Display to swap).
Click Save Changes — the cache clears automatically.
Visit your homepage (or click Preload Fonts) — fonts are downloaded and cached.
Done. All Google Fonts are now served from your domain.

延伸相關外掛

文章
Filter
Mastodon