Ошибка в консоли Synchronous XMLHttpRequest. Как изменить скрипт?

Имею вот такую ошибку в консоли:

[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

Из-за использования этого скрипта:

$ajax .= <<<HTML
$(function(){

    function updateLoginHash(retString){
        dle_login_hash = retString;
        $('input[name="user_hash"]').val(dle_login_hash);
    }

    $.ajax({  
        type: "GET",  
        url: "/engine/ajax/get_login_hash.php", 
        async:false,     
        success: function(response){
            console.log('new: ' +  response);
            updateLoginHash(response);
        }
    }); 

    console.log('current: ' + dle_login_hash);

}); 
HTML;

Дело в строках, где есть "console.log" я так понял, но как что переделать, я не понимаю.


Ответы (0 шт):