JS exclude not working | WordPress.org

[ad_1]

Hello, this looks like a strange plugin. It says I can exclude JS paths, but it doesn’t work, no matter what I do.

The page with the problem is added to the field “Link to the page you need help with”. If you check the page you notice that there is a console error “Uncaught SyntaxError: Unexpected token ‘var’” in the favorites.js script of the Favorites plugin.

So I try to exclude this script at /wp-admin/admin.php?page=litespeed-page_optm at “JS exclusions”. When I cleared the cache and check the page in incognito browser, the “Uncaught SyntaxError: Unexpected token ‘var’” error is still there.

Only when I turn off the Litespeed Cache plugin or when I put ?LSCWP_CTRL=NOCACHE or ?LSCWP_CTRL=before_optm behind the url of the page it DOES work.

So what goes wrong and how are we going to solve this?

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer