Exclude plugin/file from delayed JS loading




Wordpress LScache Plugin: Exclude plugin/file from delayed JS loading

Last Updated on: Wed, 15 Apr 2026 00:00:02
I tried excluding a specific plugin (pop-up) from the delayed JS loading on Litespeed, but this doesnt seem to work. What I did: Changed the setting for the entire site from delayed to deferred in Litespeed settings (plugin worked) Added the plugin (/wp-content/plugins/pluginname/) to the JS Excludes and JS deferred excludes ? No result Talked to support of the plugin developer and added data-no-optimize= 1 to the plugin files ? No result Tried excluding some seperate JS files (from the plugin) in the excludes (JS en deferred JS) ? No result When logged in (without optimizations) the plugins works, which is also the case when delayed JS loading is disabled. Hope theres a solution for this. Thanks! This topic was modified 8 months ago by brightidiots. This topic was modified 8 months ago by brightidiots. This topic was modified 8 months ago by brightidiots. have you tried to exclude the inline JS as well ? Yes, we did, like this: var brave_popup_data = var bravepop_emailValidation=.json_encode($emailValidator). try add a part of the inline code into the exclude list , instead of use data-no-optmize attr like brave_popup_data you may need to exclude others like jquery as well Also added all inline JS to the exclude list (Jquery included) in the Litespeed options, no results, unfortunately. try all inline , alone with wp-content wp-inclutes see what happens. and please do remember purge all after each change. Also added the wp-content en wp-includes, but no result. It seems like the exclusion function just doesnt work. Anything else I can try to solve this? it should work , but I think the thing is we did not find the correct string. what if you find all the inline js , alone with above 2 wp- into the list , purge all , how does that go ? Thanks for your reply! To be sure: do you mean I add wp- to the JS exclude box in the Litespeed Settings? no no , I mean add all the inline js you found in your page , alone with wp-content wp-includes To be honest: Im a bit lost. Dont know howto get a list of these inline JS files to exclude. Can you provide some guidance on howto make this list? If needed, I can (privately) share my staging environment for this website? Hi, disable the plugin , open your page on your browser , I assume its Chrome , then right click anywhere in your page , click view source code then in that page , search for



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



Reference