LSC doesnt work with Slider Revolution plugin




Wordpress LScache Plugin: LSC doesnt work with Slider Revolution plugin

Last Updated on: Wed, 15 Apr 2026 00:00:02
If enabling LSC (3.3.1), Revolution Slider (6.1.7) fails to load. Error: Uncaught ReferenceError: setREVStartSize is not defined Please view the diff at https://editor.mergely.com/vuoEakJB/ Left: LSC is enabled Right: LSC is disabled Please click Options -> Wrap Lines and Ignore White Space It seems LSC makes the call of this function (setREVStartSize) an event (DOMContentLoaded) listener and for somehow this event isnt triggered (but event DOMContentLoaded shall have been fired since the page is indeed loaded). Please see posts below for the comparison of function setREVStartSize. document.addEventListener( DOMContentLoaded , function() setREVStartSize( c: rev_slider_21_1, rl: [1240, 1024, 778, 480], el: [540, 768, 960, 340], gw: [1240, 1024, 778, 480], gh: [540, 768, 960, 340], type: standard, justify: , layout: fullwidth, mh: 0 ) var revapi21, tpj jQuery(function() tpj = jQuery if (tpj( #rev_slider_21_1 ).revolution == undefined) revslider_showDoubleJqueryError( #rev_slider_21_1 ) else revapi21 = tpj( #rev_slider_21_1 ).show().revolution( jsFileLocation: //digitalonedental.ca/wp-content/plugins/revslider/public/assets/js/ , sliderLayout: fullwidth , visibilityLevels: 1240,1024,778,480 , gridwidth: 1240,1024,778,480 , gridheight: 540,768,960,340 , spinner: spinner0 , editorheight: 540,768,960,340 , responsiveLevels: 1240,1024,778,480 , disableProgressBar: on , stopAtSlide: 1, stopAfterLoops: 0, stopLoop: true, navigation: onHoverStop: false parallax: levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 51, 30], type: scroll , origo: slidercenter , speed: 0 sbtimeline: set: true fallbacks: allowHTML5AutoPlayOnAndroid: true ) ) ) Expand This topic was modified 2 years, 3 months ago by tiger0516. This topic was modified 2 years, 3 months ago by tiger0516. This topic was modified 2 years, 3 months ago by tiger0516. This topic was modified 2 years, 3 months ago by tiger0516. The page I need help with: https://digitalonedental.ca When LSC is disabled, the JS code is (pls note the difference): setREVStartSize( c: rev_slider_21_1, rl: [1240, 1024, 778, 480], el: [540, 768, 960, 340], gw: [1240, 1024, 778, 480], gh: [540, 768, 960, 340], type: standard, justify: , layout: fullwidth, mh: 0 ) var revapi21, tpj jQuery(function() tpj = jQuery if (tpj( #rev_slider_21_1 ).revolution == undefined) revslider_showDoubleJqueryError( #rev_slider_21_1 ) else revapi21 = tpj( #rev_slider_21_1 ).show().revolution( jsFileLocation: //digitalonedental.ca/wp-content/plugins/revslider/public/assets/js/ , sliderLayout: fullwidth , visibilityLevels: 1240,1024,778,480 , gridwidth: 1240,1024,778,480 , gridheight: 540,768,960,340 , spinner: spinner0 , editorheight: 540,768,960,340 , responsiveLevels: 1240,1024,778,480 , disableProgressBar: on , stopAtSlide: 1, stopAfterLoops: 0, stopLoop: true, navigation: onHoverStop: false parallax: levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 51, 30], type: scroll , origo: slidercenter , speed: 0 sbtimeline: set: true fallbacks: allowHTML5AutoPlayOnAndroid: true ) ) Expand Here is a comparison of function setREVStartSize after/before LSC is enabled Left pane: when LSC is enabled Right pane: when LSC is disabled https://editor.mergely.com/yp8ZF9dP/ (Pls click Options -> Ignore White Space) Hi, Could you please provide the report number ? You can get it from toolbox -> report , click send to LiteSpeed? Best regards, Hi, Im going to mark this topic Resolved?, due to lack of activity. If you still need help, please feel free to re-open it. Best regards, ]



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference