Font Display Swap

0 0 votes
Article Rating

What Are the Settings for Font Display Swap?

What are the settings for Font Display Swap? In Elementor, this is located under Tools > Regenerate Files. The options are supported ranges, Timeout, Fallback, and OMGF. This article will walk you through each setting and explain why they are important for your web design. Then, use your knowledge of CSS to create a font display swapping script. Here are some tips and tricks to get you started.

Supported range of values:

The font-display property of a document determines how a text element should be displayed. There are several possible values for this property, including block, swap, fallback, optional, and auto. The auto value uses the user agent’s default font display strategy, which is similar to block. The fallback value, on the other hand, forces the browser to use a fallback font when it detects a font failure.

The first pixel is painted on the screen at 8.1 seconds. After the page structure is complete, around 100ms later, the fallback font is rendered. The Webfont takes a further three seconds to load, and by that time, the page is stable enough for the user to read. In contrast, the fallback font can take more than three seconds to load, but it is worth the extra weight.


While you may want to set a timeout for font display swap, you’ll want to be aware of the differences between block and swap. The former requires about four seconds to render the fallback font, while the latter requires at least three seconds. Both methods are essentially the same, though: you’ll want to set the maximum time that you’ll be willing to wait for. But what if you’re trying to keep the site’s performance to a minimum? A good rule of thumb is to set a timeout of three seconds, but if you’re looking for something more reasonable, I recommend setting it to less than five seconds.

When you set a timeout for font display swap, you’re preventing the browser from rendering your text in the wrong font during a page load. The user agent will render the text using a fallback font if the desired font is unavailable. The duration of the fallback font should be as short as possible, and you’ll want to avoid triggering it too late since it will inevitably result in a layout shift that’s both unsatisfactory and inconvenient.


A fallback to font display swap can be a useful feature for websites. Using it will allow your site to display an alternate font in the event that the one you have specified fails to load. Browsers usually have a limit of 100ms for this swap, but in some cases, they can wait for much longer. Depending on your situation, you may want to use this feature on specific pages, such as those containing a logo or company name. This will ensure that the correct message is conveyed when your page loads.

This method can save a page’s load time. The browser uses the fonts in its CSS font stack when the first one is not loaded. The first 100ms are used to render the fallback text. If the font does not load within that timeframe, the next one in the stack will be used. After three seconds, the fallback font will be shown and then the page will continue to load. It may take up to three seconds, but it is a good option for body text. Moreover, the fallback font is not visible for the entire page’s life, which is another important benefit of this feature.


You may have noticed that some of your website’s text is flashing because of ‘FOUT’ issues. One way to fix this problem is by preloading fonts on the page you’re working on. You can also use a plugin like Asset Cleanup Pro to perform font display swaps. This plugin allows you to easily swap fonts on your website and improve your Google Lighthouse score. OMGF font display swap is compatible with nearly all WordPress websites. However, you should keep in mind that some WordPress installs might not be compatible with OMGF font display swap. In that case, you should open the website in another tab and test the site again.

OMGF 5.0.2 fixes several issues, including the stylesheet handling bug. Previous versions didn’t remove the cache handles when you emptied the cache directory. This new version also fixes a preload problem when using?nomgf=1. It also fixes the issue with preloading when using the admin CSS file. Finally, this plugin adds a small speed boost to the Save & Optimize mode. As a bonus, it has also replaced the Download API with a new one. This means that you’ll no longer be able to get the WordPress API to access the Manage Optimize Fonts panel.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x