Backend Scripts Showing on Frontend

[ad_1]

I’m on the latest version of Woo and WP. A recent update has caused all of the backend scripts to load on the frontend now. For instance, wp-dom-ready, wp-a11y, wp-primitives, etc. are all being loaded on the frontend even for not logged in users. This is obviously bad for page speed. How do I fix this?

I’m also getting an error in the dev console:

Uncaught TypeError: Cannot read properties of undefined (reading 'use')

Which is caused by this javascript that is being output which should only be in the backend.

wp.data.use(wp.data.plugins.persistence, {

This seems to be a pretty big issue.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer