A slider makes a page beautiful with better appealing visuals and can impress your clients. It has a cost though in terms of resources it consumes to load and render itself. RabbitLoader provides two options to control the behavior of slider rendering so you can easily choose what is best for your website.
Page Contents
Almost all slider widgets make use of JavaScript to initialize and hence require the heavy script to be loaded first and do DOM manipulation. As the slider placement is usually above the fold, when a visitor lands on the website, the browser has to do a lot of work before the slider can be shown and the visitor is able to see anything meaningful on the screen without scrolling. This is against the Core Web Vitals best practices where it is suggested to show the above-the-fold content to the visitor as fast as possible no matter what the network speed or how powerful the visitor’s device is.
When a slider is encountered on a webpage, RabbitLoader can handle it in two ways-
Go to Settings -> Page Rules on your account. Click on the modify button for the page rule you want to modify. If you want this new setting to be effective for the entire website, choose the ‘*’ rule. If you are not familiar with it, please read the page rules introduction first.
Toggle the checkbox for the slider and save the rule.
After saving this rule, and purging the cache, the slider behavior would be updated for matching page rules.
In many scenarios, we have observed that a slider is used with a single image and only for text overlapping images. Wherever possible, look for a less resource-intensive alternative widget or component to achieve the same goal. This will keep your website fast and healthy page experience for your visitors.