Skip to content

Avoid Font Preloading Trap in WordPress

Watch on YouTube.

Preloading page assets like fonts is used to prioritize loading of those assets. This is done to reduce Cumulative Layout Shift in PageSpeed.

At the negative side, font preloading delays Largest Contentful Paint (LCP). For this reason avoid preloading custom local fonts in WordPress.

Problems related to preloading local fonts in WordPress:

  1. Preloading delays Largest Contentful Paint (LCP) metric used in PageSpeed reports.
  2. Over time website owners switch to other custom fonts and forget to remove previously font preloading setup. Which leads unnecessary font loading even if it is not used on website.
  3. Font preloading problem is not visible in PageSpeed Insights report.

Solutions explained in current tutorial:

  • Do not preload custom local fonts in WordPress at all. Because fonts already loaded with high priority.
  • Remove custom fonts completely. (I prefer this solution.)

Font preloading is a mistake that can be easily fixed.

I discovered this problem while analyzing client website that was overoptimized. Because of this they were stuck with unstable and low PageSpeed score.

What is next:

Leave a Reply

Your email address will not be published. Required fields are marked *