Plugin causes conflicts with jQuery-based functions
-
When I updated the plugin (Autoptimize), I noticed a few JS functions on my site ceased working. (Ex: a smooth-scroll feature in the footer, a lightbox plugin, and an accordion-style FAQ plugin).
At first I thought it was a caching issue, so I had the host company restart the server to completely purge the system cache. I also disabled the Memcached (database caching) with no success. I also reset the permalinks (I thought it might be a permalinks issue). My debug bar wasn’t throwing me any errors, which made the problem even more peculiar. I also tried adding the demo code for a collapse feature from Bootstrap (the theme uses Bootstrap) and couldn’t get it to work.
When I un-checked the “Optimize JavaScript Code?” option, everything started working again. I still have Autoptimize active and the HTML and CSS code optimization checked.
It’s a great plugin. Overall I’m very happy. Just curious if they are any fixes you can recommend. I tried excluding all of the .js files and tried different options (e.g. forcing JS in header, adding try-catch wrapping, etc.) but the problem persists.
My host provides server-level caching (Varnish) and database caching (Memcached). Could it still be a caching issue? Thanks again for the help.
- The topic ‘Plugin causes conflicts with jQuery-based functions’ is closed to new replies.