Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Slow hero slider: fix a slider that takes seconds to show

PRF-223Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A hero slider is a rotating banner at the top of a page. Many sliders hide every slide until their JavaScript has loaded and started. The first slide image may also be lazy loaded, set as a CSS background, or served at a huge size. The result: the top of your page is empty or shows a spinner for seconds.

Why it costs you leads or sales

Visitors judge a page in the first moments. If your headline, offer and button sit inside a slide that has not appeared, they see nothing to act on. Some leave. Others scroll past without seeing your main call to action.

Where a slow slider loses the visit
  1. Ad clickVisitor lands on the page
  2. Slider script loadsFirst slide hidden until it runs
  3. Hero offer seenHeadline and button appear late
  4. CTA clickVisitor has already left

The visitor arrives, but the hero waits on slider JavaScript.

Hero render time and visitors still on the pageExample numbers
Hero render time and visitors still on the page (example)Hero in 1.5s: 92 % still on page; Hero in 3s: 80 % still on page; Hero in 5s: 62 % still on page03571928062Hero in 1.5sHero in 3sHero in 5s% still on page

Example: illustrative numbers showing how a later hero can mean fewer visitors still present when the offer appears.

How to check if your site has it

Check your hero speed
  1. Run PageSpeed Insights

    Test your landing page at pagespeed.web.dev on the mobile tab. Look at the LCP value and the element it names. If it is a slider image, you have this issue.

  2. Throttle in Chrome

    Open DevTools, go to the Network tab, choose Fast 4G or Slow 4G, and reload. Watch how long the hero stays blank.

  3. Check the Performance panel

    Record a page load in the Performance tab. The LCP marker shows which element it is and when it appeared.

  4. Inspect the first slide

    In Elements, look for loading="lazy" on the first image, a CSS background-image, or an opacity: 0 or display: none style on the slider until it initialises.

How to fix it

There are two routes. The simplest is to drop the slider and use one static hero image with a clear button. If you keep the slider, make the first slide independent of the script.

Slider hero before and after

Before

  • First slide hidden until slider JavaScript runs
  • First image lazy loaded or a CSS background
  • Full-size image sent to phones
  • Heading and button wait for the script

After

  • First slide visible in plain HTML
  • First image preloaded, not lazy loaded
  • Responsive, compressed image sizes
  • Slider script loads after the hero shows
Preload the first slide and mark it high priorityhtml
<link rel="preload" as="image" href="/images/hero-1-1200.webp" imagesrcset="/images/hero-1-600.webp 600w, /images/hero-1-1200.webp 1200w" imagesizes="100vw">

<img src="/images/hero-1-1200.webp" srcset="/images/hero-1-600.webp 600w, /images/hero-1-1200.webp 1200w" sizes="100vw" width="1200" height="600" fetchpriority="high" alt="Your offer in a few words">
Show the first slide before the script runscss
.slider .slide { display: none; }
.slider .slide:first-child { display: block; }
Fix by platform
  1. Check your slider plugin settings

    Many slider plugins (for example Slider Revolution, Smart Slider, MetaSlider) have options for lazy loading, delayed loading or a first-slide preload. Turn off lazy load for the first slide and turn off any option that delays the slider script.

  2. Exclude the hero from optimisation plugins

    In your caching or speed plugin, exclude the first slide image from lazy loading and the slider script from delay or defer rules if the hero fails to show.

  3. Consider a static hero

    Replace the slider with an Image or Cover block holding one image, a headline and a button.

How to confirm it's fixed

Confirm the fix
  • PageSpeed Insights mobile LCP is 2.5 seconds or less
  • The LCP element is the first slide or static hero, and it is not lazy loaded
  • On throttled Fast 4G, the hero shows without a blank gap
  • The headline and button are visible without waiting for the slider script
  • Test on a real phone and in a private window with the cache empty

How to prevent it happening again

Slider problems often return after a plugin update, a new speed plugin setting or a redesign with larger images. Re-test the home page and key landing pages after any of these changes. Set a rule that the hero image must be compressed and sized before upload, and avoid sliders on landing pages that receive paid traffic.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It checks LCP (Largest Contentful Paint) when its robot visitor loads your pages on a schedule, so a slow hero shows up as a slow LCP number. It does not tell you that a slider is the cause, whether the first slide is lazy loaded, or whether the first slide hides your call to action.

Toggle the slider dependencyInteractive
First slide waits for slider JavaScript

Waits for script

Leads or data lost

The hero stays blank for seconds, LCP is late and some visitors leave before seeing the offer.

Whether the first slide depends on JavaScript is often the biggest factor in a slow hero.

Questions people ask

Why is my hero slider so slow to show the first slide?

Most sliders hide all slides until their JavaScript loads and starts. If the first image is also lazy loaded, a CSS background, or very large, it appears even later. Render the first slide in plain HTML and preload its image.

Do sliders hurt LCP?

Yes, often. The first slide image is usually the largest element on screen, so it becomes the LCP element. If it waits for script or lazy loading, LCP rises. Google treats 2.5 seconds or less as good.

Should I lazy load the first slide of a slider?

No. Lazy loading tells the browser to delay an image, which is the opposite of what you want for the main visible image. Remove loading="lazy" from it and add fetchpriority="high".

How do I fix a slow slider in WordPress?

Open your slider plugin's settings and turn off lazy load and delayed loading for the first slide. Also exclude the hero image and slider script from any caching or speed plugin delay rules. Or replace the slider with a single image block.

Is a static hero image better than a slider?

For most lead and sales pages, yes. A single image with a clear headline and button loads faster and keeps the offer in view. Visitors often never see later slides anyway.

How can I tell if the slider is my LCP element?

Run PageSpeed Insights on mobile and read the Largest Contentful Paint element in the diagnostics. Or record a page load in Chrome DevTools Performance and click the LCP marker. It will name the element.

Can FunnelGuard tell me my slider is slow?

Only partly. FunnelGuard checks LCP, so a slow hero shows as a slow LCP number. It does not identify the slider as the cause or check how the first slide loads, so inspect that by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: LCP only.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.