Fonts Plugin
  • Introduction
  • Installation
  • Developers
  • Optimization
    • Optimization Panel
    • Font Loading
  • Basic Settings
    • Base Typography
    • Headings Typography
    • Buttons and Inputs Typography
  • Advanced Settings
    • Branding
    • Navigation
    • Content
    • Sidebar
    • Footer
    • Load Fonts Only
    • Custom Elements
  • Classic Editor
    • Getting Started
  • Gutenberg
    • Getting Started
    • Transformations
  • Custom Font Uploads
    • Custom Font Uploads
  • Debugging
    • Reset All Fonts
    • Force Styles Setting
    • CSS Font Display
    • Clear Fonts Cache
  • Integrations
    • Adobe Fonts
    • Beaver Builder
    • Elementor
    • WPBakery
    • Divi Builder
  • Translations
    • Contributing
  • Fonts Plugin Pro License Key
  • Fonts Plugin Pro Files
  • Updating Fonts Plugin Pro
  • Manual Update
  • Support Access
Powered by GitBook
On this page

Was this helpful?

  1. Debugging

CSS Font Display

PreviousForce Styles SettingNextClear Fonts Cache

Last updated 4 years ago

Was this helpful?

The Font Display setting controls what happens while a font is loading. There are four options, and swap is the default.

Block

The browser will show invisible text for up to 3 seconds, it will then display the Google Font if it has downloaded.

Swap

The browser will initially show a system font, then once the Google Font has downloaded it will swap the fonts.

Fallback

The browser will initially show a fallback font. If the Google Font is downloaded within 3 seconds it will swap the fonts. If the Google Font can’t download in 3 seconds or less it will continue using the fallback.

Optional

This mode is very similar to fallback, except the wait time is a lot lower. If a font hasn’t downloaded within 100ms the fallback will persist. To realistically load in 100ms a Google Font must already be in the visitors cache.