Skip to main content

LCP Preload Snippet

⚡️ SpeedVitals can automatically generate the code to preload the LCP Element (only valid for Images & Text Elements).

You can find the Preload Snippet just below the LCP Element Section. You'll need to click on the "How to Improve LCP" dropdown to see this section.
LCP Preload Snippet

On the right side, you can click on the copy button to copy the snippet. Place this code on the top of the HEAD section to improve the performance.


For WordPress Sites, the preload snippet won't appear. Instead, our tool will recommend various plugins and techniques that you can use to Preload the LCP Image sitewide.