Title: Filter plugin JS error
Last modified: April 10, 2020

---

# Filter plugin JS error

 *  Resolved [mstankute](https://wordpress.org/support/users/mstankute/)
 * (@mstankute)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/filter-plugin-js-error/)
 * Hi,
 * WOOCOMMERCE AJAX PRODUCTS FILTER plugin does not work properly when LS Cache 
   is activated.
    JS Minify is turned off and CSS/JS Optimizer is cleaned. Filter
   URL path is added to Excludes. Also, Instant Click is disabled. But the filter
   plugin Javascript file still doesn’t get loaded fully when LS Cache is activated.
   It provides an error ‘ReferenceError: the_ajax_script is not defined’ and the
   filter button only refreshes the page.
 * Could you suggest how to fix it?
 * Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffilter-plugin-js-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/filter-plugin-js-error/#post-12655555)
 * Hi,
 * Could you please try reset to default setting and see if it works ?
 * JS combine , defer JS and Jquery defer could also cause such problem.
 * Best regards,
 *  Thread Starter [mstankute](https://wordpress.org/support/users/mstankute/)
 * (@mstankute)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/filter-plugin-js-error/#post-12660676)
 * Thank you, that was JS combine 🙂 The filter seems to work fine now.
 * Have a nice day!
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/filter-plugin-js-error/#post-12660734)
 * Hi,
 * Good to know you found the cause
 * next step would be [this](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:optimization-troubleshooting)
 * Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Filter plugin JS error’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/filter-plugin-js-error/#post-12660734)
 * Status: resolved