Home Plugins host webfonts local
OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy. logo

OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy.

by Daan van den Bergh on WordPress.org

OMGF automagically caches the Google Fonts used by your theme/plugins locally. No configuration (or brains) required!

(211)
OMGF's Local Fonts screen. These settings affect the downloaded files and generated stylesheet(s).

OMGF's Local Fonts screen. These settings affect the downloaded files and generated stylesheet(s).

OMGF can be downloaded for free without any paid subscription from the official WordPress repository.

How could using fonts via Google’s service possibly run afoul of GDPR? The fact of the matter is that, when a font is requested by the user’s browser, their IP is logged by Google and used for analytics.
— Lifehacker

Leverage Browser Cache, reduce DNS lookups/requests, reduce Cumulative Layout Shift and make your Google Fonts 100% GDPR-compliant with OMGF!

OMGF is written with performance and user-friendliness in mind. It uses the Google Fonts API to automatically cache the fonts your theme and plugins use to minimize DNS requests and speed up your WordPress website.

How Does It Work?

After installing and configuring the plugin, OMGF will automatically start looking for Google Fonts whenever a page is requested on your website.

All Google Fonts are listed in the Optimize Local Fonts section of OMGF’s settings screen. There, you can choose to:

  • Preload fonts to reduce Cumulative Layout Shift above the fold.
  • Unload fonts that’re not used by you, your theme, and/or plugins.
  • Set a Fallback Font Stack (OMGF Pro required), to further reduce Cumulative Layout Shift, or
  • Enable Magic Fallbacks (OMGF Pro required), to automatically generate mathematically tuned system font fallbacks that match your Google Fonts’ exact proportions, eliminating layout shift while fonts load.
  • Replace (OMGF Pro required) font-families with system fonts to speed up loading times!

Other Features include

  • The integrated Google Fonts checker notifies you if a plugin or your theme has added Google Fonts (e.g., after an update) it can’t process.
  • The Performance Checker automatically monitors your Google Fonts’ performance and notifies you about potential improvements in 4 areas:
    • Unused subsets — subsets that are downloaded but never used, increasing Total Blocking Time,
    • Unused font styles/weights — font variants that are loaded but not used, causing unused CSS,
    • Missing preloads — fonts used above the fold that aren’t preloaded, increasing Largest Contentful Paint and First Contentful Paint,
    • Cumulative Layout Shift — layout shift caused by fonts loading after the page is rendered.
  • Variable Fonts support,
  • Remove Resource Hints (preload, preconnect, dns-prefetch) pointing to fonts.googleapis.com or
    fonts.gstatic.com,

    • Ensure text remains visible during webfont load by forcing the font-display attribute to your Google Fonts,
  • Ensure text remains visible during webfont load by forcing the font-display attribute to all your other fonts! (OMGF Pro required),

Additional Features in OMGF Pro

  • Smart Optimize automatically detects which fonts, subsets, and weights are actually used on each page — preloading the ones that matter and removing the ones that don’t, to eliminate render-blocking resources and reduce unused CSS.
  • Magic Fallbacks generates mathematically tuned system font fallbacks that match your Google Fonts’ exact proportions, eliminating layout shift while fonts load.
  • Automatically configures itself to make sure all externally hosted Google Fonts on your site are hosted locally. OMGF Pro supports:
    • @font-face and @import statements inside inline