• I noticed that the plugin is interfering with how wp core scripts like jquery is loaded when in the wp-login.php
    Somehow or rather it prevents wp from adding what it needs to the $wp_scripts->concat property

    I made a workaround fix by enqueuing an action for login_enqueue_scripts to remove the filter that from what I see is the cause of this issue.

    add_action( 'login_enqueue_scripts', prevent_defer_in_login', PHP_INT_MAX );
    
    function prevent_defer_in_login() {
      remove_filter( 'script_loader_src', 'wdjs_store_deferred_scripts', PHP_INT_MAX, 2 );
    }

    This is added in the functions.php file

    I would consider wp-login.php part of the backend of a WordPress site. So this plugin should not be doing any deferred js here.

  • The topic ‘Plugin prevents wp core scripts loading in wp-login.php page’ is closed to new replies.