font-display: block Strategy
What you'll learn: You'll learn when and why to use font-display: block to prioritize brand-consistent typography over showing fallback text.
What Does block Do?
When you set font-display: block, the browser hides text for up to 3 seconds while waiting for your custom web font to download. During this "block period," users see invisible text rather than a fallback font. Once the font loads (or the timeout expires), the text appears in your custom font.
This creates a brief moment of invisible text—what we call FOIT (Flash of Invisible Text)—but ensures your carefully chosen typography displays correctly from the moment it appears.
When to Use Block
Use font-display: block when brand consistency is more important than immediate readability:
- Logos and wordmarks where brand identity is critical
- Short headlines or hero text where the specific typography defines the design
- Decorative text that's part of the visual design, not core content
Think of it like a theater curtain: you'd rather keep the curtain closed briefly than show the wrong scenery. The audience waits a moment, but when it opens, they see exactly what you intended.
The Trade-off
This strategy sacrifices early readability for visual consistency. Never use it for body text or large amounts of content—users need to read that immediately. Reserve block for small, visually critical text elements where seeing a fallback font would feel jarring or "off-brand."
@font-face {
font-family: 'BrandLogo';
src: url('logo-font.woff2') format('woff2');
font-display: block;
}
Key Takeaway: Use font-display: block sparingly for critical branded elements like logos where invisible text is preferable to showing mismatched fallback fonts, but never for body content.