jQuery keyup checking password is very slow
<p>I was hoping someone could help me with the following. I have a password input box that the user inputs their password and it automatically checks their password with the database using the following code</p>

<pre><code> $('input[name=currentpassword]').keyup(function(){
                var currentcheck = $(this).val();
                var dataString='thisConfirm='+ currentcheck +'&amp;userid='+$('input[name=userid]').val();
                PasswordChecking=   $.ajax({
                                        type:"POST",
                                        url:"/assets/inc/password-check.php",
                                        data:dataString,
                                        dataType:'html',
                                        context:document.body,
                                        global:false,
                                        async:false,
                                        success:function(data){
                                            return data}
                                            }).responseText;
                    checkconfirms(emailconfirm, passconfirm, PasswordChecking);
        });
</code></pre>

<p>But what I'm noticing is there’s a delay between each key up and was hoping there was  a way or alternative to check the inputted password as each key stroke is delayed or doesn’t recognize it until the Ajax returns</p>
