Title: Autoptimize and Envira and Optimize JavaScript Code &#8211; Breaks
Last modified: August 22, 2016

---

# Autoptimize and Envira and Optimize JavaScript Code – Breaks

 *  Resolved [mlargue](https://wordpress.org/support/users/mlargue/)
 * (@mlargue)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/autoptimize-1/)
 * When using Autoptimize and Envira with “Optimize Javascript Code”enabled without
   modifier changes, Envira breaks. If I use some of the Javascript modifier seetings,
   I can get it to work, but there is a large performance drop. Is there a better
   way to retain performance?
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/autoptimize-1/#post-5529377)
 * Honestly? Use a theme that has as little “cruft” as possible. No web-fonts, 3rd
   party widgets (FB/Twitter/…). And no javascript that does not allow to be aggregated(
   often a problem with jQuery image sliders, which in that case also requires one
   to exclude jquery.js as well).
 * hope this helps (somehow),
    frank
 *  Thread Starter [mlargue](https://wordpress.org/support/users/mlargue/)
 * (@mlargue)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/autoptimize-1/#post-5529381)
 * Thanks Frank
 * By way of an FYI, Envira is not a theme, it is a gallery plugin. You definitely
   helped, though. By excluding envira.js and jquery.js from aggregation, I was 
   able to minimise the performance loss. Thank you again.
 * Regards
    Michael
 *  [S o f t f u l l y](https://wordpress.org/support/users/softfully/)
 * (@softfully)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/autoptimize-1/#post-5529454)
 * On our site Popunder script was not working well but after disable this plugin
   working great.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/autoptimize-1/#post-5529568)
 * Afternoon softfully;
    1. please don’t post problems in other threads but create
   your own insted. there’s a high risk of your message not being read otherwise.
   2. do [read the troubleshooting part in the FAQ](https://wordpress.org/plugins/autoptimize/faq/)
   for better approaches to solve issue like the one you described.
 * Kind regards,
    frank

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

The topic ‘Autoptimize and Envira and Optimize JavaScript Code – Breaks’ 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

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

 * 4 replies
 * 3 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/autoptimize-1/#post-5529568)
 * Status: resolved