Deferred JS exclusion list does not work




Wordpress LScache Plugin: Deferred JS exclusion list does not work

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi! HSAZWMRA Please look at the link on your smartphone. Menu and carousel images do not work until the first user action. Although the list includes: mobileNavigation.min.js owlCarousel owlCarouselInit.min.js owl.carousel.min.js Tried specifying full path, exceptions dont work: https://cabian.ru/wp-content/themes/woodmart/js/scripts/menu/mobileNavigation.min.js https://cabian.ru/wp-content/themes/woodmart/js/scripts/menu/mobileNavigation.min.js?ver=6.1.5 https://cabian.ru/wp-content/themes/woodmart/js/scripts/global/owlCarouselInit.min.js https://cabian.ru/wp-content/themes/woodmart/js/scripts/global/owlCarouselInit.min.js?ver=6.1.5 https://cabian.ru/wp-content/themes/woodmart/js/libs/owl.carousel.min.js https://cabian.ru/wp-content/themes/woodmart/js/libs/owl.carousel.min.js?ver=6.1.5 This topic was modified 12 months ago by Igor. The page I need help with: https://cabian.ru/joya-kuhnya-loft/ When I turn off all page optimization except for the deferred JS. The mobile menu starts working before the first interaction. But the image carousel still doesnt work right away. Ill leave you the second option. Only deferred JS is included. This option shows bugs in developer tools. They only appear when deferred JS is enabled. List of deferred JS: jquery.min.js jquery.js searchFullScreen menuDropdowns cartWidget slick productImages cookie.min owlCarousel owlCarouselInit.min.js owl.carousel.min.js productImagesGallery.min.js mobileNavigation.min.js menuSetUp.min.js menuOffsets.min.js loginSidebar.min.js lazyLoading.min.js js.cookie.min.js imagesloaded.min.js helpers.min.js clickOnScrollButton.min.js cart-fragments.min.js Version 2.2 Changed template for displaying product images. Now scrolling images only appears after page reload. Interestingly, after reloading the page. The next time you visit this page, the display will be correct. Content image carousels below on the page dont work at all. The sticky title menu feature on desktop doesnt work at all. __ With JS minification and merging enabled. The page is displayed correctly. But only after the first interaction. Disabling all JS features to optimize the page fixes the issue of the page displaying correctly. Hi, you also have some inline JS, have you tried exclude them as well ? Best regards, Probably not. Please tell me how to do this. I took js from dev tools and substituted them all one by one. Hi, open the page with query string /?LSCWP_CTRL=before_optm , e.g. https://www.domain.com/?LSCWP_CTRL=before_optm , then view the HTML source code search for keyword as ) this is the inline JS , you can extract a piece of string in above code and use it to exclude , e.g you can extract MSInputMethodContext or ie11CustomProperties as string to exclude and please do remember purge all Best regards, thanks And from here? // Flicker fix. Almost all scripts in the code look like this: But you say this is not the entry to look for, right? Best regards I dont think Ill find the right scripts there. Ive seen and tried them all. The problem is different. Sometimes the sticky menu works, sometimes it doesnt. You dont need to be an expert to understand from these signs that the problem is in the code, and not in adding the necessary scripts to the list of exclusions. Best regards for the record, the JS that need to be excluded were provided by themes doc jquery.min helpers.min.js clickOnScrollButton searchFullScreen menuOffsets menuDropdowns cartWidget mobileNavigation loginSidebar menuSetUp cart-fragments slick productImages cookie.min owl.carousel owlCarousel imagesLoadedExpand Thanks. I will clarify. They need to be added to both the deferred JS sheet and the excluded JS sheet. Hi @CacheCrawler, It would be nice if there was information in the documentation on how to exclude inline scripts: https://docs.litespeedtech.com/lscache/lscwp/pageopt/#js-excludes Thank you for your effort! I checked it out. The suggested setting is useless. Errors in developer tools have not disappeared. In terms of page speed, the site began to show worse and unstable results. Output. The deferred JS exception list function in the plugin works poorly, if at all. This needs to be recognized and corrected.



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



Reference