Black Friday

Up to 30% off Avada One

Ends in

0
0
0
0
Days
0
0
Hrs
0
0
Min
0
0
Sec

See the deal →

Conditional Script Loading

Last Update: February 19, 2026

If you have the Layer Slider or Revolution Slider plugin installed, their scripts will load on each and every page of your site, even if the slider is not assigned to one of those pages. This is the default behavior of both of these sliders, and is not related to the theme. The good news is that both of them offer a way to only load the scripts on pages that have the slider on them. Continue reading below to learn how to set this feature up.

How To Configure The Revolution Slider

  • Step 1​​​​ – Go to the Revolution Slider Dashboard from the link in your admin sidebar.
  • Step 2​​​​​ – Along the top, you will see a menu. Click on Globals.

  • Step 3​​​​​ – A dialog will open. Switch the ‘Include Libraries Globally’ option off. In the following option, you can also choose to manually add which pages to include RevSlider libraries.

  • Step 4​​​​ – Click the Update button to save all your changes.

Slider Revolution Libraries

How To Configure The Layer Slider

  • Step 1​​​​ – Go to the LayerSlider WP tab in your admin sidebar.
  • Step 2​​​​​ – Expand the ‘Troubleshooting & Advanced Settings’ section.

  • Step 3​​​​​ – Switch the ‘Conditional Script Loading’ option on.

  • Step 4​​​​ – Click the Save Changes button to save all your changes.

LayerSlider - Conditional Script Loading

In this article

Prebuilts
Buy Now
Buy Avada Now!
We use essential cookies to run our site, and optional ones for analytics, advertising, and personalization. You can manage your choices at any time. See our Privacy Policy.
  • Embeds from this vendor are blocked and replaced with a placeholder until consent is given.

  • Embeds from this vendor are blocked and replaced with a placeholder until consent is given.

  • Embeds from this vendor are blocked and replaced with a placeholder until consent is given.

  • Embeds from this vendor are blocked and replaced with a placeholder until consent is given.

  • Enables Google Analytics to store data about your visit, such as pages viewed, time spent, and interactions, to help us understand and improve website performance.

  • Enables HubSpot to track your activity on this site, power the live chat widget, and manage marketing interactions, such as form submissions.

  • Used to store your authentication details.

  • Used to store your authentication details.

  • Used to check if your browser has cookies enabled.

  • Used to persist your user configuration in the admin dashboard.

  • The time at which wp-settings-[user_id] was set.

  • Remembers the state of Switch elements you have toggled.

  • Stores your privacy and consent choices so they are respected on future visits.

  • Set by Cloudflare to tell real visitors apart from bots and protect our Websites from automated attacks. It does not track you across websites and is not used for analytics or advertising.

  • Set by Cloudflare after you pass a security check, so you are not asked to complete it again on every page.

Go to Top