Leverage Browser Cache and Minimize DNS requests with OMGF (Optimize My Google Fonts, formerly known as CAOS for Webfonts).
OMGF is written with performance and user-friendliness in mind. It uses the Google Fonts Helper API to automagically download the fonts you want to WordPress’ contents folder and generate a stylesheet for it. The stylesheet is automatically included to your site’s header and 100% compatible with CSS and JS optimizing/minification plugins like Autoptimize or W3 Total Cache. OMGF can efficiently remove any requests to external Google Fonts (loaded from fonts.gstatic.com or fonts.googleapies.com).
That’s it. You’re done!
This will decrease your pageload times, leverage browser cache, minimize DNS requests and effectively bring you a perfect score on Pagespeed Insights and Pingdom, without taking toll on the performance of your webserver.
Why should I host Google Webfonts locally?
OMGF gives you the best of both worlds. The luxury to keep using Google Fonts and the ability to minimize DNS requests and leverage browser cache. Hosting Google Fonts locally will lower your site’s loading time, because your visitor’s browser doesn’t have to make a round-trip to Google’s servers to download the fonts. Instead it loads it immediately from your server, along with everything else!
- How to Locally Host Google Fonts and Leverage Browser Caching
- How to Remove Google Fonts from your WordPress Theme
- Find out which Fonts a (WordPress) Website is using
- How to make Google Fonts GDPR compliant
- Improve Web Font Loader Google Fonts with OMGF Pro
- Major Changes introduced in OMGF v4.5
Click here to go to the WordPress Repository and download OMGF.
Looking for OMGF (Pro)’s Documentation. It’s right here.