• Resolved ivoltbg

    (@ivoltbg)


    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:3
    at 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 to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support miroslavtyurdiev

    (@miroslavtyurdiev)

    Hello @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

    (@ivoltbg)

    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

    (@miroslavtyurdiev)

    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

    @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 to reply to this topic.