Title: Optimize JavaScript Code Breaks Website
Last modified: November 7, 2017

---

# Optimize JavaScript Code Breaks Website

 *  [xps20](https://wordpress.org/support/users/corneliusw/)
 * (@corneliusw)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/optimize-javascript-code-breaks-website/)
 * When I enable Optimize JavaScript Code, the website stops loading with HTTP ERROR
   500 error. When I disable the option the website loads again.
 * I am using CloudFlare. Is there a way to enable this without it breaking the 
   website?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foptimize-javascript-code-breaks-website%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/optimize-javascript-code-breaks-website/#post-9659948)
 * Love the unicorn poop bit [@corneliusw](https://wordpress.org/support/users/corneliusw/),
   I’ll tell my 11yo daughter about it 🙂
 * But anyway;
    * have a look at your PHP errorlog for possible hints on what is
   happening there. * make sure all other minification plugins are disabled and 
   that plugins that also offer minification functionality have that option disabled*
   experiment with excluding some specific JS files from optimization (e.g. `wp-
   includes/js/zxcvbn-async.min.js` to exclude just that file) or all JS of one 
   specific plugin (e.g. `plugins/woocommerce/assets/js/frontend/` to exclude all
   of woocommerce’s JS). * have a look at [the FAQ](https://wordpress.org/plugins/autoptimize/#faq)
   for more info on troubleshooting.
 * Hope this helps,
    frank

Viewing 1 replies (of 1 total)

The topic ‘Optimize JavaScript Code Breaks Website’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/optimize-javascript-code-breaks-website/#post-9659948)
 * Status: not resolved