Optimize Fonts

These settings affect the fonts OMGF (Pro) downloads and the generated stylesheet(s). Below the screenshot you’ll find a rundown of each option. Once you’re done configuring, you can simply click Save & Optimize.

If Optimization Mode is set to Manual, OMGF (Pro) will immediately scan the defined URL for Google Fonts and show an overview of found fonts. In Automatic mode OMGF Pro capture Google Fonts for all pages and process them by a cron schedule. The Manage Optimized Google Fonts overview will be shown (and adjusted) accordingly.

For both modes, the same logic goes: if the Google Font has been found before and the corresponding stylesheet exists, no call to OMGF’s Download API will be made.

 Optimize Fonts: in most situations the default settings should suffice.

Optimization Mode (default: Manual)

Select when you want OMGF (Pro)’s detection and optimization to take place. In most situations manual will suffice, because most WordPress sites work with a fixed set of fonts throughout the entire site.
Some websites, however, use different fonts on different pages. To reduce maintenance (and layout breaks) these website should use Automatic (only available in OMGF Pro) Optimization Mode.

A preview of OMGF Pro's AOM Task Manager
When Optimization Mode is set to ‘Automatic’, the Task Manager appears, which allows you to view the cron task’s progress, control the batch size and manually trigger cron tasks.

Combine & Dedupe Google Fonts (only available in OMGF Pro — always on)

Merges all detected Google Fonts requests into one stylesheet and de-duplicates them. E.g. if your theme is requesting Roboto 400, 600 and 700, and a plugin is requesting Roboto 400 and 900, OMGF Pro will merge this request into Roboto, 400, 600, 700 and 900.

Font-display option (default: Swap)

Preview of OMGF's Font Display Option

Only change this if you know what you’re doing. In most situations ‘Swap’ is what you’re looking for, since it removes the Ensure text remains visible during webfont load optimization suggestion in Google PageSpeed Insights, effectively increasing your score.

Force Font-display Option Site Wide (only available in OMGF Pro — default: off)

When this option is checked, OMGF Pro will parse all (CSS) stylesheets troughout your site's frontend and make sure every @font-face statement includes a font-display: <value> attribute. <value> is replaced with the value of the Font-Display Option setting. Using this option will fix the Ensure text remains visible during webfont load optimization suggestion in Google PageSpeed Insights for all fonts, including FontAwesome, Elementor Icons, Elegant Icons and other icon packs.

Include File Types (only available in OMGF Pro — default: WOFF2, WOFF)

Fine-tune the stylesheet generated by OMGF Pro to only include files you (and your visitors) actually use. In most situations the default will suffice, because WOFF2 and WOFF is supported by 98% of browsers.

Force Subsets (only available in OMGF Pro — default: empty)

Some plugins/themes load all subsets for the fonts they’re using. This could lead to excessive load. Optimizing the subsets for your Google Fonts will help you reduce pageload.
If your site only has Western European and/or North American visitors, you will only need the Latin subset. If your site is e.g. Syrian, you only need the Hebrew subset.

Optimize fonts for logged in editors/administrators (default: on)

Only disable this when you’re customizing another theme, using WordPress’ customize feature, or using a drag-and-drop page builder.

Detection Settings

These settings affect how OMGF (Pro) searches for fonts throughout your sites and how the found files are processed.

Detection Settings: In most situations, the default settings should suffice.

Google Fonts Processing (default: Replace)

Replace will download all detected Google Fonts in your website’s pages and serve them from a local source. Remove will remove all Fonts, forcing a browser to fallback to system fonts, which is faster, but not necessarily pretty.
Both options will increase site speed by reducing DNS lookups.

Advanced Processing (only available in OMGF Pro — default: on)

Disabling this will disable OMGF Pro’s Advanced Processing features, i.e. Safe Mode, Google Fonts Processing (Pro) and Remove Resource Hints (Pro). All other features of OMGF Pro (e.g. Force Subsets or Fallback Font Stacks) will still function.

You will want to disable Advanced Processing if OMGF already replaced all Google Fonts on your site and layout breaks started occuring after upgrading to OMGF Pro.

Safe Mode (default: off)

On pages containing invalid HTML elements, it might occur that OMGF Pro breaks styling while parsing the page source for Google Fonts. Enabling Safe Mode might take care of this issue. If it doesn’t, contact me.

Google Fonts Processing (only available in OMGF Pro — default: all on)

You can fine-tune OMGF Pro’s font detection by skipping certain sections of your page source. Only tweak this settings if you’re absolutely certain you don’t need it.

> How to configure Google Fonts Processing.

Remove Resource Hints (only available in OMGF Pro — default: on)

Most themes/plugins using Google Fonts, add a resource hint pointing to fonts.googleapis.com to the header of each page. Enabling this option removes this resource hint from your header.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us