Title: Conflict between Shopify plugin and Async JavaScript
Last modified: February 4, 2021

---

# Conflict between Shopify plugin and Async JavaScript

 *  Resolved [pablopaul](https://wordpress.org/support/users/pablopaul/)
 * (@pablopaul)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/conflict-between-shopify-plugin-and-async-javascript/)
 * Our website is running on WordPress 5.6 using DIVI 4.8.1. After installing the
   WP Shopify plugin v3.5.4, the console was showing about 15 Uncaught Type Errors
   and Uncaught Reference errors, all of which trace back to the wp-includes/js/
   dist directory. While these errors occur, the products page comes up empty.
 * We are using Async JavaScript plugin v2.20.12.09, and have narrowed it down to
   a conflict between this and the WP Shopify plugin. If we disable or deactivate
   AJ, or if we exclude the wp-includes/js/dist folder, the errors go away and the
   products page works. (Excluding the WP Shopify plugin in AJ does not fix this
   issue.) The problem for us is that excluding the js/dist folder makes our website
   run noticeably slower, so we’re hoping there’s a better way to resolve this issue.
 * Our Shopify products page is currently set to “private” on the live site as we
   are gradually transitioning to use the Shopify plugin, but the errors show up
   in the console on every page, so you should be able to see what I’m talking about
   just by visiting the website homepage.
 * I have also posted this on the plugin support page for WP Shopify, because I 
   don’t know which plugin is triggering this, or whose code needs to be altered
   to fix it.
    -  This topic was modified 5 years, 3 months ago by [pablopaul](https://wordpress.org/support/users/pablopaul/).
      Reason: Mistaken post: wrong plugin support page

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

 *  Thread Starter [pablopaul](https://wordpress.org/support/users/pablopaul/)
 * (@pablopaul)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/conflict-between-shopify-plugin-and-async-javascript/#post-14005225)
 * I’m sorry. I posted this on the wrong plugin page. Please delete this support
   post if possible. Thank you.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/conflict-between-shopify-plugin-and-async-javascript/#post-14006153)
 * no worries pablopaul; I am developer of both AO & AsyncJS and I can simply confirm
   you will have to exclude `wp-includes/js/dist` from AsyncJS. Likely reason is
   that Shopify is probably adding inline JS which depends on JS in `wp-includes/
   js/dist` (where the block code lives).
 * frank
 *  Thread Starter [pablopaul](https://wordpress.org/support/users/pablopaul/)
 * (@pablopaul)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/conflict-between-shopify-plugin-and-async-javascript/#post-14009592)
 * Thank you for your quick response and for clarifying the probable source of the
   problem. Great support!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/conflict-between-shopify-plugin-and-async-javascript/#post-14009642)
 * you’re welcome, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/async-javascript/reviews/#new-post)!
   🙂
 *  [andrewmrobbins](https://wordpress.org/support/users/andrewmrobbins/)
 * (@andrewmrobbins)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/conflict-between-shopify-plugin-and-async-javascript/#post-14027538)
 * [@pablopaul](https://wordpress.org/support/users/pablopaul/) Hey there, I’m the
   author of the WP Shopify plugin.
 * Let me know if you run into any additional issues. Happy to take a closer look
   for you!

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

The topic ‘Conflict between Shopify plugin and Async JavaScript’ 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/)

 * 5 replies
 * 3 participants
 * Last reply from: [andrewmrobbins](https://wordpress.org/support/users/andrewmrobbins/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/conflict-between-shopify-plugin-and-async-javascript/#post-14027538)
 * Status: resolved