Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    I think I see what you mean, on the home page of your site there are JavaScript files being loaded for Stripe even though there is no sign of anything payment related on the home page. I don’t see a mini-cart or any payment request buttons or anything that might account for why these JavaScript files might be enqueued.

    However, the same does not appear to be the case on a test site of mine with WooCommerce and Stripe:

    The JavaScript is only enqueued on a page that needs it. For example where there is a payment request button:

    This leads me to believe that the problems you are facing have a source other than WooCommerce or Stripe. How we usually address this type of issue is to have you temporarily switch back to a default WordPress theme such as WordPress Twenty Twenty Theme (https://www.ads-software.com/themes/twentytwenty/) or Storefront (https://www.ads-software.com/themes/storefront/) and disable all plugins except for WooCommerce and Stripe. If that resolves the issue, then re-enable features one-by-one until you find the one that’s causing the conflict.

    A misconfiguration in autooptimize could possibly be a cause for this:

    that might be a good starting point.

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Hopefully that helps! Have a great one!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Defer parsing of JavaScript’ is closed to new replies.