• Hi team,

    On one of my sites, the WooCommerce block-based checkout broke when “Defer Render-blocking JavaScript” was enabled.

    Several scripts require the __dangerousOptInToUnstableAPIsOnlyForCoreModules function, which is defined in the /wp-includes/js/dist/private-apis.min.js file. However, the wp-private-apis handle does not appear to be included in the default blacklist, resulting in:

    I resolved the issue by using the sgo_js_async_exclude filter to exclude wp-private-apis.

    I wanted to bring this potential issue to your attention, as it may affect other sites.

    Regards,
    Ashu

Viewing 1 replies (of 1 total)
  • Plugin Support miroslavtyurdiev

    (@miroslavtyurdiev)

    Hi Ashu,

    Thank you for taking the time to share this detailed report and providing your workaround with the community!

    Edge cases where core script dependencies conflict with deferred loading are precisely why we built custom filters like sgo_js_async_exclude into Speed Optimizer, giving site owners an easy way to resolve script-handling issues immediately. You can check our full list of available custom filters here:

    https://www.siteground.com/tutorials/wordpress/speed-optimizer/custom-filters

    If you notice any further issues or need direct assistance with your setup, please submit a support ticket through your SiteGround account so our support team can take a closer look:

    https://www.siteground.com/kb/how_to_post_support_tickets/

    Thanks again for helping us make Speed Optimizer better!

    Best Regards,
    Miroslav Tyurdiev

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.