Title: JS Syntax Error when enabling plugin.
Last modified: August 30, 2016

---

# JS Syntax Error when enabling plugin.

 *  Resolved [itagility](https://wordpress.org/support/users/itagility/)
 * (@itagility)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/js-syntax-error-when-enabling-plugin/)
 * I’ve trying out the plugin on our multi-site setup. I enabled the plugin but 
   a JS error showed up that’s breaking our page.
 * If I disable the optimize JS then the page loads fine again. Here is the JS error
   in the console and location.
 * [http://screencast.com/t/qYpqas5LOf](http://screencast.com/t/qYpqas5LOf)
 * Is this something that’s fixable? I’d love to use the plugin.
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/js-syntax-error-when-enabling-plugin/#post-6581847)
 * I would try excluding that JS from being optimized (cfr. troubleshooting as described
   [in the FAQ](https://wordpress.org/plugins/autoptimize/faq/)) seems like code
   form a mail/ newsletter plugin probably?
 * hope this helps,
    frank

Viewing 1 replies (of 1 total)

The topic ‘JS Syntax Error when enabling plugin.’ 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: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/js-syntax-error-when-enabling-plugin/#post-6581847)
 * Status: resolved