Peakspire Font Loading Optimizer

Peakspire Font Loading Optimizer

Details
View on WordPress

Font loading is one of the largest contributors to Largest Contentful Paint (LCP) on real websites. Peakspire Font Loading Optimizer applies the three highest-impact font fixes, built from hands-on Core Web Vitals engineering on production sites:

  1. Preload local WOFF2 fonts – Scans your enqueued stylesheets for locally hosted WOFF2 files and adds <link rel="preload"> tags, capped at 4 fonts. Preloaded fonts arrive before the browser discovers them inside CSS files, removing the font round-trip from the critical path.

  2. Adds font-display: swap to eligible inline @font-face rules – Rules that already declare an explicit optional, block, fallback, or auto value are never touched. Rules without a descriptor get swap, so text renders immediately with the fallback font instead of sitting invisible while web fonts download.

  3. Remove external Google Fonts (optional) – Dequeues all fonts.googleapis.com requests for sites that have self-hosted their fonts.

  4. Remove dashicons for visitors (optional) – Dequeues the dashicons stylesheet for logged-out visitors, saving a render-blocking request most themes never use on the front end.

Everything is front-end only and safe to use alongside caching plugins (WP Rocket, LiteSpeed Cache, W3 Total Cache, etc.).

Why only local fonts are preloaded

Cross-origin font preloads waste bandwidth when the crossorigin fetch does not match the stylesheet fetch. This plugin deliberately preloads only same-host WOFF2 files, the safe default for virtually all themes that self-host fonts.

Details

Plugin code:
peakspire-font-loading
Plugin version:
1.0.5
Author:
Outdated:
No
WP version:
6.9 or higher
PHP version:
7.4 or higher
Test up to WP version:
7.1.4
Total installations:
0
Last updated:
2026-11-08
Rating:
Times rated:
0
core-web-vitals
fonts
performance
preload
speed