Search code examples
wordpressoptimizationpluginspagespeed

my slider revolution wont work properly after optimizing with WP Rocket


I have optimized my WordPress website with WP Rocket and it has speeded up my website. but there's a problem with slider revolution. it wont be loaded up fast and i have to refresh my page for it to get loaded. I have disabled java script optimization but the problem steel remains. I'm using BETheme, Elementor, Slider Revolution and Wp Rocket.

how should I fix this problem?


Solution

  • Please insert the following into WP Rockets Delay JavaScript Execution and Load JavaScript Deferred field and see if it helps.

    in the Delay JavaScript Execution field:

    /jquery-?[0-9.]*(.min|.slim|.slim.min)?.js
    /wp-includes/js/jquery/jquery-migrate.min.js
    /plugins/revslider/public/assets/js/
    setREVStartSize
    rev_slider_
    revslider_
    

    Then, in the Load JavaScript Deferred field, please enter the following exclusions:

    /jquery-?[0-9.]*(.min|.slim|.slim.min)?.js
    /wp-includes/js/jquery/jquery-migrate.min.js