• Resolved JacobTheDev

    (@revxx14)


    On our websites, we add a filter so that scripts will be deferred. The new inline JS that’s being added in v5.2.0 is trying to access a ton of libraries, all of which are being deferred, so there are tons of errors occurring.

    Normally, I’d fix this by excluding specific libraries from deferment on an as-needed basis, but this is requiring so much that that doesn’t seem like a reasonable workaround.

    What do all these scripts do? Is there a way for me to disable them?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Same problem

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @revxx14 @vimana

    Thanks for raising issue, I have created internal ticket for this and will get back to you asap on this.

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @revxx14 @vimana

    We have identified the issue and working on fix.

    As temporary solution can you please try add below code in function.php file of your theme and let me know if it solved the issue.

    if(!is_user_logged_in()) {
        global $simba_two_factor_authentication;
        remove_action( 'enqueue_block_assets', array($simba_two_factor_authentication, 'enqueue_gutenberg_block_scripts'));
    }
    Plugin Support aporter

    (@aporter)

    Hi,

    Version 5.2.1 has just been released.

    This should resolve the above issue.

    Let me know if you have any other problems.

    Best Wishes,

    Ashley

    Thread Starter JacobTheDev

    (@revxx14)

    Thanks for the quick patch, this indeed seems to have solved the issue.

    Thank you!!! I updated the to 5.2.1 and i confirm the problem is solved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘New JS breaks with script deferment’ is closed to new replies.