Fonts & Resource Hints
What it does
Fonts & Resource Hints improve how browsers load fonts and connect to third-party hosts. To turn Google Fonts or Open Sans off entirely, use WordPress Cleanup. When Google Fonts are disabled there, Google swap and Google preconnect do nothing.
Watch the walkthrough
Starts at 12:59 in the Divi Nitro 5.0 walkthrough.
Where to find it
Divi Engine → Nitro Settings → Fonts & Resource Hints
Settings
| Setting | Type | Default | What it does |
|---|---|---|---|
| Use font-display: swap for Google Fonts | Toggle | Off | Show fallback text immediately, then swap in Google Fonts. Does not change fonts added only through the Divi Customizer |
| Preload font files | Text | empty | One HTTPS .woff or .woff2 URL per line for critical above-the-fold fonts |
| Enable preconnect | Toggle | Off | Open early connections to third-party hosts. Does not download fonts or videos by itself |
| Preconnect Google Fonts | Toggle | On (when preconnect is on) | Warm fonts.googleapis.com and fonts.gstatic.com |
| Preconnect YouTube | Toggle | Off | Warm YouTube player and thumbnail hosts |
| Preconnect Vimeo | Toggle | Off | Warm Vimeo player and CDN hosts |
| Custom preconnect hosts | Text | empty | One hostname per line (for example cdn.example.com). No https:// |
Tips
- Preconnect only hosts you actually use on most pages.
- Avoid duplicating the same preconnect/preload rules in WP Rocket or LiteSpeed.
- If fonts flash incorrectly, disable preload/swap temporarily while testing.