'swap (most used)', 'auto' => 'auto', 'block' => 'block', 'fallback' => 'fallback', 'optional' => 'optional' ); ?>
array())); ?>>

font-display:'); ?>       /  
Overwrite any existing "font-display" value?      
 

   

%s, as the existing files from plugins/themes will not be altered in any way.', 'wp-asset-clean-up'), \WpAssetCleanUp\OptimiseAssets\OptimizeCommon::getRelPathPluginCacheDir()); ?>


font-display CSS property defines how font files are loaded and display by the browser.', 'wp-asset-clean-up'); ?>

Read more about this: Hey hey `font-display`  |  `font-display` for the Masses  |  Controlling Font Performance with font-display  |  https://font-display.glitch.me/  |  Video: Fontastic Web Performance

:

Examples:
/wp-content/themes/your-theme-dir/fonts/lato.woff
/wp-content/plugins/plugin-title-here/fonts/fontawesome-webfont.ttf?v=4.5.0

Generated Output, printed within <HEAD> and </HEAD>
<link rel="preload" as="font" href="/wp-content/themes/your-theme-dir/fonts/lato.woff" data-wpacu-preload-font="1" crossorigin>
<link rel="preload" as="font" href="/wp-content/plugins/plugin-title-here/fonts/fontawesome-webfont.ttf?v=4.5.0" data-wpacu-preload-font="1" crossorigin>
×

font-display: swap

The text is shown immediately (without any block period, no invisible text) in the fallback font until the custom font loads, then it's swapped with the custom font. You get a FOUT (flash of unstyled text).

font-display: block

The text blocks (is invisible) for a short period. Then, if the custom font hasn't been downloaded yet, the browser swaps (renders the text in the fallback font), for however long it takes the custom font to be downloaded, and then re-renders the text in the custom font. You get a FOIT (flash of invisible text).

font-display: fallback

This is somewhere in between block and swap. The text is invisible for a short period of time (100ms). Then if the custom font hasn't downloaded, the text is shown in a fallback font (for about 3s), then swapped after the custom font loads.

font-display: optional

This behaves just like fallback, only the browser can decide to not use the custom font at all, based on the user's connection speed (if you're on a slow 3G or less, it will take forever to download the custom font and then swapping to it will be too late and extremely annoying)

font-display: auto

The default. Typical browser font loading behavior will take place. This behavior may be FOIT, or FOIT with a relatively long invisibility period. This may change as browser vendors decide on better default behaviors.

Example of a @font-face CSS output

@font-face{font-family:'proxima-nova-1';src:url("/wp-content/themes/my-theme-dir/fonts/proxima-nova-light.woff2") format("woff2"),url("/wp-content/themes/my-theme-dir/fonts/proxima-nova-light.woff") format("woff");font-weight:300;font-style:normal;font-stretch:normal;font-display:swap}