Title: Compatibility with caching plugin
Last modified: December 15, 2022

---

# Compatibility with caching plugin

 *  [RabbitLoader](https://wordpress.org/support/users/sanrl/)
 * (@sanrl)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/compatibility-with-caching-plugin/)
 * Hello team,
 * We are using the RabbitLoader plugin for Core Web Vitals performance optimization.
   We see that the color swatches are not working in this case.
 * We went ahead and debug the JavaScript handlers and see that all handlers are
   correctly getting invoked when the color option is clicked. Here is the recording
   of the debug session done by the RabbitLoader team- [https://drive.google.com/file/d/1y5l0Q72_LKCSqUtB2piBn6G6joQauKoy/view?usp=share_link](https://drive.google.com/file/d/1y5l0Q72_LKCSqUtB2piBn6G6joQauKoy/view?usp=share_link)
 * We would like to understand what changes are required either on “Variation Swatches
   for WooCommerce” or “RabbitLoader” or both to make it work.
 * Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcompatibility-with-caching-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [an0nbr](https://wordpress.org/support/users/an0nbr/)
 * (@an0nbr)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/compatibility-with-caching-plugin/#post-16416092)
 * Hi friend, I got this bug too. I dont know why they havent fixed yet.
 * Have you being able to fix it?
 * Its triggering click event twice
 * Please try editing frontend.js, line 25 has the following code:
 *     ```wp-block-code
       .on('click', '.swatch', function (e) {
           e.preventDefault();
       ```
   
 * Try adding this line below:
 * e.stopImmediatePropagation();
    -  This reply was modified 3 years, 4 months ago by [an0nbr](https://wordpress.org/support/users/an0nbr/).
    -  This reply was modified 3 years, 4 months ago by [an0nbr](https://wordpress.org/support/users/an0nbr/).

Viewing 1 replies (of 1 total)

The topic ‘Compatibility with caching plugin’ is closed to new replies.

 * ![](https://ps.w.org/variation-swatches-for-woocommerce/assets/icon-256x256.png?
   rev=2602534)
 * [Variation Swatches for WooCommerce](https://wordpress.org/plugins/variation-swatches-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/variation-swatches-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/variation-swatches-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/variation-swatches-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/variation-swatches-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/variation-swatches-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [an0nbr](https://wordpress.org/support/users/an0nbr/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/compatibility-with-caching-plugin/#post-16416092)
 * Status: not resolved