Support » Plugin: Autoptimize » Conflict between Shopify plugin and Async JavaScript

  • Resolved pablopaul


    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 1 year, 10 months ago by pablopaul. Reason: Mistaken post: wrong plugin support page
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Conflict between Shopify plugin and Async JavaScript’ is closed to new replies.