Title: Javascript breaking
Last modified: December 11, 2019

---

# Javascript breaking

 *  Resolved [DeeperLook](https://wordpress.org/support/users/deeperlook/)
 * (@deeperlook)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/javascript-breaking/)
 * Hi there,
 * On this page, an enrolment form should be displayed. However, when I set the 
   Javascript Option ‘Optimise JavaScript Code’ to enabled, the form no longer appears.
 * I believe the scripts being called are the following, which I’ve excluded already.
   I’ve also tried enabling and disabling the other options in the JS section but
   to no avail:
    - wp-content/plugins/ax_plugin/js/ax-event-cal-helper.js,
    - wp-content/plugins/the-events-calendar/common/src/resources/js/tooltip.min.
      js,
    - wp-content/plugins/the-events-calendar/common/src/resources/js/tribe-common.
      min.js
 * Are you able to assist me in finding which JS script is breaking when I try to
   optimise the JS please?
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-breaking%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/javascript-breaking/#post-12227118)
 * Can you try adding `plugins/ax_plugin/` to the JS optimization exclusion list?
 *  Thread Starter [DeeperLook](https://wordpress.org/support/users/deeperlook/)
 * (@deeperlook)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/javascript-breaking/#post-12229241)
 * Unfortunately neither `plugins/ax_plugin/` or `wp-content/plugins/ax_plugin/`
   work when put in the exclude list.
 *  Thread Starter [DeeperLook](https://wordpress.org/support/users/deeperlook/)
 * (@deeperlook)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/javascript-breaking/#post-12229284)
 * Ah I think I’ve solved it by disabling ‘Minify excluded CSS and JS files?’
    -  This reply was modified 6 years, 6 months ago by [DeeperLook](https://wordpress.org/support/users/deeperlook/).
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/javascript-breaking/#post-12229762)
 * good job! files that are excluded are by default still minified unless that option
   is unticked.

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

The topic ‘Javascript breaking’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/javascript-breaking/#post-12229762)
 * Status: resolved