Title: Console Errors with Defer Render-blocking JavaScript
Last modified: January 19, 2026

---

# Console Errors with Defer Render-blocking JavaScript

 *  Resolved [ivoltbg](https://wordpress.org/support/users/ivoltbg/)
 * (@ivoltbg)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/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.
   js
 * Despite 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:3at wp-data-js-after:7:4
 * wp-date-js-after:2
   Uncaught TypeError: Cannot read properties of undefined (reading‘
   setSettings’)at wp-date-js-after:2:9
 * I 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.
    1. Could you advise exactly which scripts/directories need to be excluded from 
       Defer Render-blocking so that these errors (`wp-data-js-after` and `wp-date-
       js-after`) are resolved without breaking WordPress, Gutenberg, or WooCommerce
       functionality?
    2. 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fconsole-errors-with-defer-render-blocking-javascript%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [miroslavtyurdiev](https://wordpress.org/support/users/miroslavtyurdiev/)
 * (@miroslavtyurdiev)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/console-errors-with-defer-render-blocking-javascript/#post-18790933)
 * Hello [@ivoltbg](https://wordpress.org/support/users/ivoltbg/),
 * Thank you for reaching out. I see that you already have a ticket open regarding
   this matter via SiteGround’s Help Desk. Our support team is actively investigating
   the issue to provide you with the best solution. I recommend continuing the conversation
   through the ticket to ensure all information is centralized and addressed efficiently.
 * I appreciate your understanding.
 * Best regards,
   Miroslav Tyurdiev
 *  Thread Starter [ivoltbg](https://wordpress.org/support/users/ivoltbg/)
 * (@ivoltbg)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/console-errors-with-defer-render-blocking-javascript/#post-18791240)
 * Hello Miroslav,
 * Thank you for the update.
 * I appreciate your help and I’ll continue the communication through the open ticket
   as suggested.
 * Once the case is resolved, with your permission, I’d like to share the solution
   here so other users with a similar issue can benefit and see what steps they 
   can take.
 * Thanks again for your support.
 * Best regards,
   Nikola
 *  Plugin Support [miroslavtyurdiev](https://wordpress.org/support/users/miroslavtyurdiev/)
 * (@miroslavtyurdiev)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/console-errors-with-defer-render-blocking-javascript/#post-18792070)
 * Hello Nikola, 
   Thank you for the follow-up. That is perfectly fine, and you can
   share the solution that you were provided for others to benefit from it as well.
 * Best regards,
   Miroslav Tyurdiev
 *  [pvnanini](https://wordpress.org/support/users/pvnanini/)
 * (@pvnanini)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/console-errors-with-defer-render-blocking-javascript/#post-18828889)
 * [@ivoltbg](https://wordpress.org/support/users/ivoltbg/) hello bro…did you finally
   solve this issue with render-blocking scripts?
 * I’m experiencing a problem in the cart/checkout and it would be great if you 
   could share here the scripts list
 *  Cheers

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fconsole-errors-with-defer-render-blocking-javascript%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [pvnanini](https://wordpress.org/support/users/pvnanini/)
 * Last activity: [3 months, 2 weeks ago](https://wordpress.org/support/topic/console-errors-with-defer-render-blocking-javascript/#post-18828889)
 * Status: resolved