Why font optimization matters
Unoptimized custom web fonts cause FOIT (Flash of Invisible Text) and layout shifts (CLS). OptiWave self-hosts Google Fonts locally to eliminate third-party DNS lookups.
Key Font Features
- Self-Host Google Fonts - Downloads WOFF2 font files to
wp-content/cache/optiwave/fonts/and serves locally - Font Display Swap - Rewrites
@font-faceCSS to enforcefont-display: swap - Size-Adjust Fallbacks - Injects font fallback metrics to prevent layout shifts (CLS) when fonts render
- Font Preloading - Preloads critical above-the-fold WOFF2 font files in HTML
<head>