Exclude JS: What am I Doing Wrong?




Wordpress LScache Plugin: Exclude JS: What am I Doing Wrong?

Last Updated on: Wed, 15 Apr 2026 00:00:02
Im trying to exclude Statcounter from getting minified, combined, and deferred, all of which I have turned on. Under Tuning, I have added counter_xhtml.js to the JS Excludes field, but I still cant get Statcounter to track?unless I deactivate the plugin. Any suggestions? Guest Mode is off, and I did try to use the URI Excludes field in Tuning, but Im not sure what to add or how to add it, so I may have done something wrong there. My full js for statcounter is? var sc_project= var sc_invisible=1 var sc_security= var sc_https=1 var scJsHost = (( https: == document.location.protocol) ? https://secure. : http://www. ) document.write( ) ?and I have it manually added to the footer of my site. I did some Googling on this and see Statcounter didnt work with a few other caching plugins?WP-Rocket for one (https://github.com/wp-media/wp-rocket/issues/4654)?and they had to fix it in an update. So I guess there is a chance it doesnt work with Litespeed. Thanks! This topic was modified 2 months ago by ElleJG. The page I need help with: https://coveredpages.com/ I figured it out! Of course, it was something simple. I needed to add my js to JS Deferred Excludes as well. yes, and you dont need to put the entire code , a simple unique word/string ought do it as well



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



Reference