Google Fonts loaded by Web Font Loader are loaded asynchronously and therefore hard to improve. After tweaking Super Stealth for CAOS, it was about time that OMGF received a premium companion to play with. Introducing: OMGF Pro.
What’s Web Font Loader?
Why does Web Font Loader need optimization?
About two weeks ago, Google introduced the latest addition of their speed measurement software — Lighthouse 6 — to PageSpeed Insights.
One of the highlights of Lighthouse 6 is Unused JS: a new
reason to punish you optimization opportunity.
Web Font Loader’s
webfont.js is a library, just like e.g. Google Analytics’
analytics.js is a library.
A library is a collection of code, making common tasks easier, e.g. implementing Google Fonts, adding Google Analytics, etc.
Web Font Loader doesn’t just support Google Fonts. It also supports Typekit among others.
And here’s the catch: to support all this, additional code is needed. Code that you’re not using, because you’re only using Google Fonts!
Time to Dump
Google loves to contradict itself, and the latest addition to PageSpeed Insights is filled with
joy contradictions. Unused JS being one of them.
Using some libraries can’t be avoided, like
webfont.js definitely is.
You could — of course — try to rewrite the entire
webfont.js library to just support Google Fonts.
Don’t bother. It’s unreadable.
It’s much easier to upgrade your favorite WordPress plugin, wouldn’t you agree?
Assuming that your favorite plugin for WordPress is OMGF. If it’s isn’t. I’m hurt — a little.
webfont.js Loading Time with OMGF Pro
OMGF Pro offers the easiest approach to remove
webfont.js from your WordPress theme and replace its Google Fonts with locally hosted versions.
It functions as an add-on and helps OMGF to detect more fonts. OMGF Pro follows the same steps and logical approach you’re already used to, to Auto Detect your WordPress theme’s fonts.
This calls for a Celebration!
We’re expecting a daughter (edit: she was born July 9th!), we bought a house, WoOSH! is boOming! And now, OMGF Pro is born.
Too much to celebrate!
That’s why you get 10% off on all my Premium WordPress plugins and any license using the coupon code AWESOME10 until we’ve moved into our new home, somewhere between October and December. That means you can get a license for as low as € 26,-!