How To's

Conditional Script Loading For Sliders

11 viewsSeptember 2, 2018October 12, 2018admin0

If you have the Layer or Revolution Slider installed on your website, their scripts will load on each and every page of your site, even if the slider is not added 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.

IMPORTANT NOTE: On page speed test like Google Page Speed, loading scripts on all pages can result in Render Blocking errors. Using the above option will reduce those errors on pages that do not have a Layer or Revolution Slider. However, using these options can cause other conflicts. If you see issues, it is recommended to keep them on.