Hi @3yq9nfgnvh,
Thank you for reaching out and for clarifying your request. I want to make sure I fully understand—are you asking why these scripts exist, or are you seeing them appear on your live site pages? The screenshot you shared looks like the page source of your website, and the scripts you’re referring to are coming from the wp-includes directory, which is part of WordPress core, not WooCommerce.
These scripts are required for WordPress to function properly. The wp-includes/js folder contains the default JavaScript libraries and core scripts that WordPress uses, along with the components that themes and plugins rely on.
If you have more questions about this, please create a topic here instead:
https://wordpress.org/support/forum/miscellaneous/
The scripts in question, the ones in red, are not required and appear to be bloat. Upon review, the Stripe plugin was adding them as a part of the express checkout features. More block/React bloat. I have figured out how to disable it.
Hi @3yq9nfgnvh,
Thank you for getting back to me. I took another look, and I can confirm that all the scripts in your screenshot are coming from the wp-includes/js folder, mostly inside the dist directory. These are default WordPress core scripts. If they were located under wp-content/plugins/woocommerce/ then we could say they came from WooCommerce, but that’s not the case here.
The only script related to Stripe is the one for Stripe Express Checkout, which is expected since the Stripe plugin adds it to support options like Link, Google Pay, and Apple Pay on your product pages, cart, and checkout. It is normal for those to load in the header.
Everything you are seeing is standard, required WordPress behavior. None of the scripts are bugs, and nothing appears newly or incorrectly added. As your setup grows with more plugins, themes, and features, WordPress will naturally load more scripts to support that functionality.
If your goal is to optimize your store’s performance, it may help to work with a specialist. Platforms like codeable.io have experts who can fine-tune your site safely.
I am running a classic theme and have Gutenberg disabled. Those are not standard scripts. React and all of those other scripts don’t normally load on the frontend of my site. They load in the editor, not the frontend. When I disable Apple Pay/Google Pay express checkout on the product pages, those scripts disappear. They appear to all be dependencies for the wc_stripe_express_checkout script. Unfortunately, this is the poor support I was expecting here. You can mark this as resolved.
-
This reply was modified 3 days, 12 hours ago by
3yq9nfgnvh.
Hi there,
Thank you for sharing the details. I understand your concern and appreciate the clarification regarding your setup with a classic theme and Gutenberg disabled. It does seem that the scripts you’re seeing are dependencies loaded by the Stripe integration, specifically when Apple Pay/Google Pay express checkout is enabled.
Since the scripts disappear after disabling Apple Pay/Google Pay, in this case, I would suggest contacting the plugin support team you are using for Apple Pay and Google Pay. They will be able to confirm why these scripts are loading and whether they are necessary or not.
Thank you for your patience and for providing the details. it’s very helpful for understanding the behavior.
Before you go, could you please leave a five-star review if you found the WooCommerce plugin helpful in setting up your store? you can leave a review here: https://wordpress.org/support/plugin/woocommerce/reviews/#new-post