Exclude js not working




Wordpress LScache Plugin: Exclude js not working

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I was following this tutorial in order to find the js file that I need to exclude from minification in order to make my website work as it did before the optimization. https://docs.litespeedtech.com/lscache/lscwp/ts-optimize/ I added all js files that load on my homepage to Page Optimisation > Tuning > JS exclude. This should make my website work fine again, but it is still broken. This is how Im adding the files: ?. https://echipamenteprotectie.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0 https://echipamenteprotectie.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2 https://echipamenteprotectie.com/wp-content/plugins/cookie-law-info/public/js/cookie-law-info-public.js?ver=2.0.5 https://echipamenteprotectie.com/wp-content/plugins/popup-builder/public/js/Popup.js?ver=4.0.2 ?. Is there something wrong with the way I am adding these paths? Hi, I can see the files you listed are indeed excluded from the JS Combine, but evidently theres still one or more JS files that should also be excluded from the JS Combined file. What our doc tells you to do is as follows: 1) Run your site with /?LSCWP_CTRL=before_optm and get a list of all the JS files. 2) Put them all into the JS Excludes box. 3) Remove one file from the list, save changes, purge all and run your site to see if the problem returns. If not, continue the trial and error process until the problem returns, at which point, put the problematic JS file back into the Excludes box and continue the process until youve tried out each one of them. 4) In the end, youll have all the problematic file(s) left in the Excludes box and your site should run correctly. The trial and error process is time-consuming, but its the only way to make sure the problematic JS files are excluded. If you still our help, please provide the LS report number. Regards. Hello, Thank you for your reply. Of course, I have excluded all JS files that loaded on my homepage. I have followed the tutorial steps very closely. In the above post, I only listed a few files just to show how I am adding the paths. The issue is that after adding all JS files to the exclude box, my site is still broken. This means that I can not start removing the files one by one, in order to find the culprit. I am not sure what you mean by LS report number. Hi, Before you do any excludes, youre supposed to determine whether the problem is with CSS or JS by turning off the minify/combine settings, say, you turn off the CSS settings first and see if the problem goes away if so, then the problem is with the CSS files otherwise, its with the JS files. Im really curious about your claim that the issue still persists even after youve put ALL the JS files in the JS Excludes box, because this could only mean the problem is not with the JS files. However, if you confirm that the issue goes away when you turn off the JS minify/combine settings, then itd indicate a serious issue. And so, please go to our support site https://store.litespeedtech.com/store/submitticket.php?step=2&deptid=2 and open up a ticket, because wed need to get onto your site to further investigate the issue. Thank you. Regards. there are 2 fileds , one is JS exclude, another one is defer JS exclude , you need to narrow down which JS options you have issue with and you can also use wp-content wp-includes to exclude them all first, see how it goes I managed to narrow it down to the Load JS Deferred setting. If I switch this option from delayed to OFF or Deferred , then the issues are gone. I think the problem is with some inline JS, but I dont know how to exactly find it. The most important issues were that my homepage revolution slider and my main product photo on each product page would not display. So what I did was exclude my home page and /product/ pages from LS Cache optimization. I dont like this and it is not the best solution for me, but it is a compromise one. I dont know how to troubleshoot this any further honestly. use that /?LSCWP_CTRL=before_optm query string to view original page, check its HTML source code , search for all



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



Reference