Title: Java Script Breaks after activating Autoptimise
Last modified: September 16, 2017

---

# Java Script Breaks after activating Autoptimise

 *  Resolved [espressotrans](https://wordpress.org/support/users/espressotrans/)
 * (@espressotrans)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/)
 * Hi there, I love Autoptimise and I would like to use it. However, when I activate
   the java script optimisation, both the reviews carusel and the 3 blog posts at
   the bottom break.
 * I have tried to follow all instructions found on the FAQ page but nothing….The
   only thing I have’t tried is exclude the 2 script but I don’t know how to find
   them
 * Is there anyone that could help me?
 * Thanks,
    Dan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjava-script-breaks-after-activating-autoptimise%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9502019)
 * you don’t seem to have autoptimize active now Dan; your CSS is minified with 
   another tool?
 *  [froscinsky](https://wordpress.org/support/users/froscinsky/)
 * (@froscinsky)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9502488)
 * I have the same problem. After activating the javascript optimization my plugins
   stopped working. I tried to disable all options and the plugin itself, but the
   problem remains and I can not restore the page to its initial state.
    -  This reply was modified 8 years, 6 months ago by [froscinsky](https://wordpress.org/support/users/froscinsky/).
    -  This reply was modified 8 years, 6 months ago by [froscinsky](https://wordpress.org/support/users/froscinsky/).
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9502747)
 * [@froscinsky](https://wordpress.org/support/users/froscinsky/); I looked at your
   site and Autoptimize is not active any more so any problem is unrelated to AO.
   But I indeed see several JS-errors, which you’ll need to solve before thinking
   about optimization. Once you’re there, [have a look at AO’s FAQ](https://wordpress.org/plugins/autoptimize/faq)
   for troubleshooting tips (every problem is fixable, given the right configuration)
   🙂
 *  Thread Starter [espressotrans](https://wordpress.org/support/users/espressotrans/)
 * (@espressotrans)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9505727)
 * Hi,
 * I have just activated it. Please clear cache and have a look at what happens 
   at the bottom (blog) and the purple line (where the reviews should be scrolling).
 * Thanks,
    Dan
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9505770)
 * OK, so I see this error on the browser console;
 * > 11:52:02.188 TypeError: window.Parsley is undefined 1 autoptimize_9e533b49f9c9af94672562b516ece7fd.
   > js:25:20357
 * so can you try excluding `plugins/caldera-forms/assets/build/js/parsley.min.js`
   or even `plugins/caldera-forms/` to AO’s comma-separated JS optimization exclusions?
 * frank
 *  Thread Starter [espressotrans](https://wordpress.org/support/users/espressotrans/)
 * (@espressotrans)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9505798)
 * Just added it:
 * seal.js, js/jquery/jquery.js, plugins/caldera-forms/
 * and cleared cache…the problem seems still to be there.
 * Dan
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9505846)
 * you’ll have to clear your (page) cache, seems to work OK when busting the page
   cache like this [https://www.espressotranslations.com/?qdsfqs=qsdfq](https://www.espressotranslations.com/?qdsfqs=qsdfq)
 *  Thread Starter [espressotrans](https://wordpress.org/support/users/espressotrans/)
 * (@espressotrans)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9505896)
 * Yes it seems to work now 🙂
 * Thanks a lot for your help! Will let you know if I have any other issue.
 * Best,
    Dan
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9505930)
 * great, have a nice day Dan! 🙂
 *  [Josh Pollock](https://wordpress.org/support/users/shelob9/)
 * (@shelob9)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9506802)
 * I’m the author of Caldera Forms. I’m glad you got this sorted, but I wanted to
   jump in with a note.
 * There are often problems when our already minified JavaScript is minified again.
   That is why we have the caldera_forms_render_assets_minify filter. It prevents
   JavaScript and CSS from being loaded minified and combined by Caldera Forms. 
   If that filter is used and returns false, an optimization plugin such as auto-
   optimize will get unminifed JS and CSS that it can then optimize accordingly.
 * [https://calderaforms.com/doc/caldera_forms_render_assets_minify/](https://calderaforms.com/doc/caldera_forms_render_assets_minify/)
 * Here is pseudo-code for how this could be done automatically. I don’t have enough
   knowledge of Auto-optimize to know how to finish it. But it seems like it would
   be a good thing to add to Auto-optimize to prevent this type of ticket – [https://pastebin.com/Picrh1yZ](https://pastebin.com/Picrh1yZ)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9507347)
 * nice [@shelob9](https://wordpress.org/support/users/shelob9/), let’s cooperate
   on this! can you contact me via futtta-at-gmail-dot-com ?
 *  [Josh Pollock](https://wordpress.org/support/users/shelob9/)
 * (@shelob9)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9510103)
 * Sent.

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

The topic ‘Java Script Breaks after activating Autoptimise’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [Autoptimise](https://wordpress.org/support/topic-tag/autoptimise/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 12 replies
 * 4 participants
 * Last reply from: [Josh Pollock](https://wordpress.org/support/users/shelob9/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/java-script-breaks-after-activating-autoptimise/#post-9510103)
 * Status: resolved