Title: Plugin breaks Envira Gallery Lite plugin
Last modified: September 13, 2018

---

# Plugin breaks Envira Gallery Lite plugin

 *  Resolved [meltdown2](https://wordpress.org/support/users/meltdown2/)
 * (@meltdown2)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-breaks-envira-gallery-lite-plugin/)
 * I’ve found that on a number of my different WordPress installs Async JavaScript
   breaks the Envira Gallery Lite plugin galleries. I do have the plugin excluded
   in “Plugin Exclusions”.
 * Please visit the link I’ve provided. On that page is an Envira Gallery Lite gallery.
   Can you help me determine how to resolve this?
 * Many thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-breaks-envira-gallery-lite-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [meltdown2](https://wordpress.org/support/users/meltdown2/)
 * (@meltdown2)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-breaks-envira-gallery-lite-plugin/#post-10685645)
 * It looks as though I’ve resolved this. It seems that I needed to exclude the 
   Woocommerce plugin as well. I suspect that is because I am using the Woocommerce
   Storefront theme.
 * I’ll mark this as resolved.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-breaks-envira-gallery-lite-plugin/#post-10685647)
 * can you try also excluding that gallery’s JS from autoptimize JS optimization?
 * great job fixing it! 🙂
 * frank
 *  Thread Starter [meltdown2](https://wordpress.org/support/users/meltdown2/)
 * (@meltdown2)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-breaks-envira-gallery-lite-plugin/#post-10687182)
 * It looks like I was a bit quick to call this resolved. Concerning your suggestion
   to also exclude that gallery’s JS from Autoptimize: How can I determine what 
   exactly to exclude?
 * Thanks.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-breaks-envira-gallery-lite-plugin/#post-10687514)
 * well, assuming the gallery-plugins “lives” in `wp-content/plugins/envira-gallery/`,
   you could add that (or `plugins/envira-gallery/` or `envira-gallery/`) to the
   comma-separated list of JS optimization exclusions. There’s more info on troubleshooting&
   how to exclude in [AO’s FAQ](https://wordpress.org/plugins/autoptimize/#faq).
 * hope this helps,
    frank

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

The topic ‘Plugin breaks Envira Gallery Lite plugin’ is closed to new replies.

 * ![](https://ps.w.org/async-javascript/assets/icon-128x128.png?rev=1839260)
 * [Async JavaScript](https://wordpress.org/plugins/async-javascript/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/async-javascript/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/async-javascript/)
 * [Active Topics](https://wordpress.org/support/plugin/async-javascript/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/async-javascript/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/async-javascript/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-breaks-envira-gallery-lite-plugin/#post-10687514)
 * Status: resolved