OMGF Pro v5.2.10 WordPress Plugin

OMGF Pro (Host Google Fonts Locally) helps you eliminate external Google Fonts requests by serving them directly from your own WordPress server, ensuring full GDPR compliance and improved performance. By preventing user IP addresses from being sent to Google, it addresses privacy concerns while also reducing DNS lookups and leveraging browser caching. The plugin automatically detects fonts used by your theme and plugins and replaces remote requests with optimized local copies.

Host Google Fonts Locally works in either Manual or Automatic mode, giving you control over how fonts are detected and optimized. In Automatic mode, it captures requests to Google’s font domains, downloads the required files, generates cross-browser compatible stylesheets (EOT, TTF, WOFF, WOFF2), and rewrites URLs to point to local versions. It also supports font preloading, CDN delivery, and advanced optimizations like combining and deduplicating stylesheets in the Pro version, helping reduce page size and loading time.

NameOMGF Pro
TypeWordPress Plugin
Version5.2.10
LicenseGPL v2
Last Updated
Live DemoView Demo

Core Features of OMGF Pro WordPress Plugin

  • Automatic Font Replacement: Automatically replaces registered and enqueued Google Fonts in wp_head() with local copies.
  • Remove Google Fonts: Automatically removes registered and enqueued Google Fonts from wp_head().
  • Manage Optimized Fonts: Allows you to manage all optimized Google Fonts from one place.
  • Preload Above-the-Fold Fonts: Enables preloading of important fonts for faster initial rendering.
  • Exclude Specific Fonts: Prevents certain fonts or entire stylesheets from loading.
  • Font-Display Swap Option: Leverages the font-display (swap) setting to improve perceived loading speed.
  • CDN Support: Allows serving fonts from a CDN.
  • Security Plugin Compatibility: Works with security through obscurity plugins.
  • Full Document Replacement (Pro): Automatically removes or replaces all Google Fonts across the entire page.
  • WebFont Loader Support (Pro): Supports WebFont Loader (webfont.js) and Early Access Google Fonts.
  • Combine Stylesheets (Pro): Combines all Google Fonts stylesheets created by themes and plugins into one file.
  • Deduplicate Stylesheets (Pro): Deduplicates multiple Google Fonts stylesheets.
  • Force Font Subsets (Pro): Forces the used subset(s) to reduce loading time and page size.
  • Remove Resource Hints (Pro): Removes preload, preconnect, and dns-prefetch hints pointing to Google Fonts domains.

What’s New (Changelog) in OMGF Pro v5.2.10

= 5.2.10 =
* Note: this release detects stylesheets which were skipped before, so optionally run Save & Optimize once after updating to add them to your cache. Nothing breaks if you don't.
* Fixed: Optimize Local/External Stylesheets skipped any link element written over multiple lines (or with a line break inside its href attribute), while browsers load those just fine. The pattern used to find them couldn't match line breaks, but could run past the > which ends an element. Both are fixed, and line breaks are now stripped from the URL before it's requested, just like browsers do.
* Improved: the classes which collect @import statements (and the one which adds the Material Icons subset) registered their filters once per instance, while they're constructed on every processing run. Because nothing ever removed those filters, they stacked up within a single request, which meant the same @import could be optimized several times over, and the Material Icons subset could be added to the subset list more than once.
* Fixed: @import statements spread over multiple lines weren't detected. CSS allows whitespace (incl. line breaks) after @import and inside url(), and a backslash followed by a line break is a line continuation inside a string, but none of those were matched. A raw line break inside the URL is still ignored, because that's an unterminated string, which browsers don't load either.
* Fixed: Smart Optimize (Unused Fonts) could return a blank page when an inline @import statement was fully unloaded. The pattern used to remove that statement removed everything between the first @import and the last occurrence of the stylesheet's URL, and exceeded PCRE's runtime limits on documents larger than ~100KB, in which case the entire document was replaced with nothing (accompanied by a 'preg_replace_callback(): Passing null to parameter #3 ($subject)' deprecation notice). Matching is now confined to a single @import statement, and a failed search/replace leaves the document untouched.
* Fixed: Smart Optimize (Unused Fonts) didn't remove any @font-face rules from stylesheets whose fonts are split into subsets. The subset was matched against the font file's URL using a pattern which
couldn't match the hyphen separating the subset from the font-weight (e.g., source-sans-pro-normal-latin-400.woff2), so no rule ever matched. The subset is now matched against the @font-face rule's
unicode-range, and only falls back to the filename for rules which don't define one.
* Fixed: Smart Optimize (Unused Fonts) now removes a stylesheet's link element from the HTML entirely when all of its @font-face rules are unloaded, instead of leaving behind a request for an empty stylesheet. Generated stylesheets always start with a header comment, which meant they were never detected as empty. This also fixes the deregistration of fully unloaded Async Stylesheets.
* Fixed: an unused Material Icons stylesheet wasn't removed from the HTML. Its cached URL was looked up in the wrong list, so it was never recognized, and clearing the link element's href attribute left behind a request for the page itself. Its link element is now removed entirely.

Download OMGF Pro Latest Version

Share This Article!

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify you're human
3 + 2 =