Website performance and delivery · Article 0310
How to Diagnose a high LCP caused by a web font
Use this evidence-first guide to diagnose the specific symptom, make the smallest justified change, and confirm that the original workflow is restored.
What the symptom usually means
This symptom is a clue, not a diagnosis. For “How to Diagnose a high LCP caused by a web font,” the cause may sit in configuration, routing, application behavior, or an upstream service. Confirm the failing layer from the response and logs before changing settings.
LCP measurement checks
- Use PageSpeed Insights or browser Performance tools to identify the actual LCP element and whether the delay comes from TTFB, resource-load delay, resource duration, or render delay.
- If the LCP element is an image, inspect its URL, dimensions, responsive source, priority, and lazy-loading behavior. If it is text, inspect font loading and render-blocking resources instead.
- Compare mobile and desktop and test repeat loads. Do not preload or prioritize an asset until measurement confirms it is the LCP resource.
Checks to run first
- Inspect the image request's URL, status, response type, and transfer size in browser DevTools.
- Confirm the original file and expected generated derivative exist; check storage availability and relevant permissions.
- For slow images, serve appropriately sized responsive variants and compress them without visibly degrading quality.
- For layout shifts, set intrinsic width/height or aspect ratio; avoid lazy-loading the main above-the-fold LCP image.
Measure before changing performance settings
Use these checks to isolate the specific failure described in this guide.
Step-by-step troubleshooting
- Use the performance trace to confirm the LCP element is text and that font loading delays its paint. Check the Network panel for font requests, CSS dependencies, and blocked or slow font files.
- Reduce font variants and weights, subset fonts when practical, and serve WOFF2 files efficiently. If a critical font is self-hosted and reliably needed above the fold, consider a narrowly targeted preload with correct crossorigin behavior.
- Use a suitable font-display value so text can render while the font loads, and ensure the fallback font has compatible metrics to reduce layout shifts. Do not preload every font weight.
- Retest with a cold cache and the same performance profile. Confirm text paints sooner and font swapping does not introduce unacceptable layout shift.
How to verify the fix
- Confirm text paints before the delayed font arrives and the fix does not introduce a font-related layout shift.
- Test at least one nearby workflow that should remain unaffected.
- Check for a new error in the browser console, application log, or provider dashboard.
- If a cache or DNS TTL is involved, allow the relevant cache/TTL interval and verify from more than one path before concluding that the change failed.
Common mistakes to avoid
- Changing several settings at once, which prevents you from identifying the cause.
- Deleting content, resetting the database, or disabling security controls before evidence justifies that action.
- Using broad permission changes such as making every file writable, or exposing debugging output and secrets to public visitors.
- Assuming the homepage working proves that forms, admin pages, APIs, redirects, and other URLs also work.
- Repeatedly clearing every cache or changing DNS while the underlying origin/configuration is still wrong.
If the problem continues
Escalate with the exact affected URL, timestamp and time zone, response/error code, steps to reproduce, recent changes, and a sanitized log excerpt or request ID. Tell the host or software provider what you tested and what changed. Ask them to check the layer you cannot access rather than requesting a broad reset.
For provider-specific values, version-sensitive behavior, or commands, confirm the instructions in the official documentation for your exact hosting plan and software version before applying them. This guide intentionally avoids destructive one-size-fits-all commands because the correct action depends on the evidence and environment.