On this page
What this issue is
Largest Contentful Paint (LCP) is the time until the biggest visible element in the first screen has been drawn. On many landing pages that element is the hero image.
Many sliders (carousels) ship an empty container in the HTML. Their JavaScript then downloads, reads its settings, creates the img or a CSS background and starts the image download. The browser's preload scanner, which finds images while the HTML is still loading, cannot see any of that. So the image request starts late.
- HTML arrivesEmpty slider container, no img tag
- Slider JS downloadsOften a large, render-blocking file
- JS builds slideImage URL is only known now
- Image downloadsRequest starts late
- LCP paintedVisitor sees the hero late
The image request cannot start until the slider script has run.
Why it costs you leads or sales
Visitors from ads judge a landing page in seconds. If the main image and headline area stay empty or jump around, some leave before they see your offer or form. You also pay for those clicks. A slow LCP can also weigh on your Core Web Vitals results, which Google uses as a page experience signal.
Example: illustrative LCP times for the same page with different hero setups. Your numbers will differ.
How to check if your site has it
View the page source
Open the page, right-click and choose View page source (not Inspect). Search for the hero image file name. If it is missing from the source, JavaScript adds it later.
Find the LCP element
Run PageSpeed Insights on the URL. Under Diagnostics, open Largest Contentful Paint element. It shows the exact element and the phases of the load.
Look at resource load delay
In Chrome DevTools, open Performance, record a reload and click the LCP marker. A long gap before the image request (resource load delay) points to late discovery.
Test on mobile
Repeat with mobile throttling. Slider scripts hurt most on slower phones and networks.
How to fix it
The goal is that the browser can see the first image in the raw HTML. The simplest fix is a single static hero image. If you need a slider, make only the first slide static and load the rest later.
<link rel="preload" as="image" href="/img/hero-1.webp" fetchpriority="high">
<div class="slider">
<img src="/img/hero-1.webp" width="1200" height="600"
alt="Describe the offer" fetchpriority="high">
</div>
<script src="/js/slider.js" defer></script>Replace or reconfigure the slider
If the hero does not need to move, swap the slider block for a single Image or Cover block. Otherwise check your slider plugin's settings for options such as server-side first slide, lazy load off for the first slide, or a static fallback image. Option names vary by plugin.
Exclude the hero from lazy loading
If your optimisation plugin delays JavaScript or lazy-loads images, exclude the slider script and the first image from those features, then retest.
Edit the slideshow section
In the theme code, open the slideshow section file. Make sure the first slide outputs an img tag in Liquid, not data that JavaScript turns into an image. Many modern themes already do this.
Prioritise the first image
Add fetchpriority="high" and loading="eager" to the first slide only, and leave the other slides lazy.
Use a static hero or the first slide as an Image
Webflow's Slider element outputs slides in HTML, so check the image is not set as a background loaded by custom code. Select the first image and set Loading to Eager. Set other slides to Lazy.
Simplify the hero
Wix controls how slideshows load. Replace the slideshow with a single image or strip at the top, or move the slider lower on the page. Then retest.
Use a single banner image
Use a section with one background image or an Image block as the first thing on the page. Put any gallery or slideshow below the first screen.
Use an Image element in the first section
Avoid carousel or slider elements in the first section. Use a standard Image element and keep its size close to the displayed size. Compress it before upload.
Check that no tag builds the hero
If a Custom HTML tag or A/B testing tag swaps or injects the hero, the image is again found late. Move the hero into the page template, or pause the tag for the first screen.
Render slide one on the server
Output the first slide as an img in your template. Add width and height, fetchpriority=high and a preload link in the head.
Defer the slider script
Load the slider with defer or after the load event. Build the other slides from JavaScript only once the page is ready.
How to confirm it's fixed
- The hero image file name now appears in View page source
- PageSpeed Insights shows the LCP element as a normal img with no long resource load delay
- The image request starts early in the DevTools Network panel
- LCP on mobile is lower than before (compare several runs, as results vary)
- The slider still works and the other slides still appear
- Layout does not jump when the slider starts
How to prevent it happening again
- Treat the first screen as static: no JavaScript should be needed to show it
- Ask for a performance check before adding a new slider or page builder widget
- Re-test LCP after theme, plugin or optimisation setting changes
- Check that delay-JavaScript features exclude the hero
- Keep hero images compressed and close to their displayed size
- Review key landing pages in PageSpeed Insights each month
How FunnelGuard handles this
FunnelGuard detects this issue only partly. It detects the LCP time on your funnel steps when the robot visitor runs them on a schedule. It does not detect the cause, so it cannot tell you that a JavaScript slider is the reason the image is late.
To cover the rest by hand: when FunnelGuard flags a slow LCP, open the page, view the source, and search for the hero image file name. Then run PageSpeed Insights and read the LCP element and its timing breakdown. If the image is missing from the source, follow the fixes above. You can start with the Free plan (1 site, 2 journeys, daily checks, no card), and paid plans include a 3-day free trial.
Questions people ask
Why is my slider image slow to load?
Many sliders create the first image with JavaScript. The browser cannot start downloading it until the script has loaded and run, so the image appears late. Putting the first slide in the HTML as a normal img tag removes that delay.
Does a hero slider hurt LCP?
It can. If the slider injects its first image with JavaScript, lazy-loads it, or blocks rendering with a heavy script, LCP gets worse. A slider that outputs the first slide in HTML and loads its script with defer has much less impact.
How do I find out if JavaScript is adding my LCP image?
Use View page source and search for the hero image file name. If it is not there, JavaScript adds it later. PageSpeed Insights also shows the LCP element and how long the browser waited before starting its download.
Should I remove my homepage slider?
Often yes, for the first screen. A single static hero image is faster and usually clearer for visitors. If you keep a slider, make slide one static HTML, preload it and load the other slides later.
Should the first slide have loading=lazy?
No. The first visible slide is usually the LCP image, and lazy-loading delays it. Use loading=eager and fetchpriority=high on that image, and lazy-load only slides that start off-screen.
Can FunnelGuard tell me my slider causes slow LCP?
Not fully. FunnelGuard detects the LCP time on your funnel steps, but not the cause. You need to check the page source and PageSpeed Insights by hand to see whether a slider injects the image.
Will preloading the image fix a slider problem?
A preload link can help the browser fetch the image early, but the image must still be shown quickly. It works best together with the first slide as real HTML and a deferred slider script. Preload only the exact file and size used.
Related issues
- PRF-001LCP over 2.5 s on a funnel stepFix guide
- PRF-007LCP image lazy-loaded (loading=lazy on hero)Fix guide
- PRF-008LCP image not preloaded / no fetchpriority=highFix guide
- PRF-010Hero background image set in CSS, discovered lateFix guide
- PRF-012Render-blocking synchronous JS in <head> (jQuery, sliders)Fix guide
- PRF-016Client-side rendered page shows blank until JS bundle runsFix guide