How to Set up Carousel Content for Lazy Loading

How to Set up Carousel Content for Lazy Loading

One of the reasons why sites on RebelMouse are able to score 90 or higher on Google's PageSpeed Insights tool is through our lazy-loading functionality. Lazy loading ensures that only the most critical content is loaded first when a user clicks onto a page.

However, if you have a carousel-style layout for content inside of a Lazy Load element in our Layout & Design Tool, it will not display:

This is how the carousel should be displayed:

Here's how the incorrect setup looks like in Layout & Design Tool:

The issue here is that carousel JavaScript is wrapped in lazy-javascript by default. So when you lazy load a carousel, that code never turns into an actual script and the carousel does not load. To fix this, we have to initiate the lazy-loaded carousels manually. This means that the carousel content should be taken out of the Lazy Load element and positioned with custom JavaScript after lazy loading is completed.

Here's how the setup looks in the Layout & Design tool:

Here's an example of how the carousel should display:

Click here to learn more about elements available for lazy load on our platform. If you have questions about how to implement this workaround, please contact your account manager or email

What Is RebelMouse?
Request a Proposal

Websites Are Built

The Fastest Sites in the World Run on RebelMouse

Let’s Chat


RebelMouse Performance Monitoring

Real-Time Core Web Vitals

Get Started

Our Core Features

Our platform is a complete digital publishing toolbox that's built for modern-day content creators, and includes game-changing features such as our:

Layout and Design toolLayout and Design tool on mobile

Why RebelMouse?

Unprecedented Scale

RebelMouse sites reach more than 120M people a month, with an always-modern solution that combines cutting-edge technology with decades of media savvy. And due to our massive scale, 1 in 3 Americans have visited a website powered by RebelMouse.

120M+ Users
550M+ Pageviews
17+ Avg. Minutes per User
6+ Avg. Pages per User

Today's Top Websites Use RebelMouse

Thanks to the tremendous scale of our network, we are able to analyze a wealth of traffic data that informs our strategies and allows us to be a true strategic partner instead of just a vendor.

upworthyindy100Vault12No Film SchoolRawStoryResponsible StatecraftPrideMNI Market NewsPremierGuitarPenskeINN Educate Brand ConnectThe FulcrumGZEROOkayafricaBrit+CoPaper MagazinePowerToFlyNarcityCommonDreamsAllBusiness

What Clients Say

We’re here to help you weigh and understand every tech and strategic decision that affects your digital presence. Spend less time managing everything yourself, and more time focused on creating the quality content your users deserve.

Case Studies

A Team Built Like No Other

RebelMouse employs a unique, diverse, and decentralized team that consists of 70+ digital traffic experts across more than 25 different countries. We have no central office, and we cover every time zone to ensure that we’re able to deliver amazing results and enterprise-grade support around the clock.

Our team is well-versed in all things product, content, traffic, and revenue, and we strategically deploy ourselves to help with each element across all of our clients. We thrive on solving the complex.

Let's Chat