Console Errors with Defer Render-blocking JavaScript
-
Hello,
I am using your plugin to defer render-blocking JavaScript, and I have excluded the following scripts from deferral:
/wp-includes/js/dist/vendor/moment.min.js
/themes/woodmart/js/scripts/wc/updateCartFragmentsFix.js
/wp-includes/js/jquery/jquery.min.js
/wp-includes/js/jquery/jquery-migrate.min.js
/themes/woodmart/js/scripts/global/helpers.min.js
/themes/woodmart/js/scripts/wc/woocommerceNotices.min.js
/themes/woodmart/js/scripts/global/scrollBar.min.jsDespite these exclusions, I am seeing the following errors in the browser console:
wp-data-js-after:6
Uncaught TypeError: Cannot read properties of undefined (reading ‘use’)
at wp-data-js-after:6:3
at wp-data-js-after:7:4wp-date-js-after:2
Uncaught TypeError: Cannot read properties of undefined (reading ‘setSettings’)
at wp-date-js-after:2:9I attempted to exclude the directories responsible for these inline scripts (
wp-data.js,wp-date.js), but when I do, the plugin suggests additional directories that also need to be excluded. I am unsure which ones are critical to maintain proper WordPress core functionality.- Could you advise exactly which scripts/directories need to be excluded from Defer Render-blocking so that these errors (
wp-data-js-afterandwp-date-js-after) are resolved without breaking WordPress, Gutenberg, or WooCommerce functionality? - Is there a safe list of core WordPress scripts that must always load synchronously?
Thank you in advance for your assistance!
The page I need help with: [log in to see the link]
- Could you advise exactly which scripts/directories need to be excluded from Defer Render-blocking so that these errors (
You must be logged in to reply to this topic.