How to exclude files from Delay JS?




Wordpress LScache Plugin: How to exclude files from Delay JS?

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, Ive activated Delayed JS files but Ive got an issue with the picture gallery that does not display before the user does anything (and I know this issue appeared after switching to Delayed JS). I listed all JS files and inline JS in the Differed JS exclusion box, but it seems that files are not excluded as nothing changes. Is it supposed to exclude for both Differed and Delayed? If not, how to? Thank you. The page I need help with: https://www.thecocoonalist.com/produit/ensemble-cocooning-coton-gris Hi, please provide the report number you can get it in toolbox -> report -> click send to LiteSpeed Best regards, Hello, Its NSXVMJXD. Thank you. Hi, the ones with URL dont work , remove the URL from it e.g. https://www.domain.com/xxx/xxx.js -> this is no xxx/xxx.js -> this is ok and you may also need to exclude it in JS exclude list as well , not only defer JS exclude list Best regards, Hello, Thank you. I did what you said: ? remove https://domain from urls ? copy this list to JS excluded list And this doesnt make things better, but worse. By doing that, delay doesnt work anymore, and some js files dont load at all. Any idea? Thank you. Hi, delay doesnt work anymore, in combine with I listed all JS files and inline JS in the Differed JS exclusion box delay doesnt work anymore is the correct result as you have excluded all the JS from being defer/delayed and some js files dont load at all. do you see any error message on dev tool ? Hello, With the same list of js scripts in both Delay and JS excluded, I have many JS errors in the dev console, like Uncaught TypeError: $ is undefined and others related to at least two plug-ins. Could you please tell me why Delay JS cant work without the JS excluded list? I am using another plug-in for other websites, and it works fine with an empty excluded JS. Is it related to the theme? Thanks. it depends on how plugin was written , different developers would have different way to make things if you turn off deley , no error message shows up ? Hello, If delay turned off, there is no error message in the dev tools. Hi, okay , if you turn it on , with JS defer exclude wp-content wp-includes how does that go ? Hello, If I turn it on, with excluding this, I still have issues, like the picture gallery is not loading if the user doesnt do anything. Thank you. okay , you still need to find the corresponding inline JS to exclude Hi! Did you manage to solve the problem? I have the same one. Hello @igriq, Still not. I made several tests and I still believe the delayed js excluded list is not working. I think so too. After a few days wasted. It is strange that they do not recognize this and do not correct it. I have tested this out using both JS Excludes and JS Deferred Excludes by pasting the JS that I want to exclude from delay and it works perfectly fine.



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



Reference