autocomplete 1.12.0 and 1.12.1 bugs

autocomplete 1.12.0 and 1.12.1 bugs

Hi guys.

I've notice serious problem with autocomplete.
It works ok in 1.11.4 for example

It gets slower and slower with every call even if I don't deliver data from an ajax call

That my headers I'm using


or


(with 1.11.4) works ok

Code to reproduce bug. I put alot of response() calls here on purpouse so effect will appear faster.

@1.12.0 After few key downs autocomplete loads longer and longer (even if this is same data)
@1.12.1 After few key downs autocomplete eats so many resources that even highlighting suggested items is very very laggy. After few clicks you have to close webbrowser.

Tested on chrome  Version 60.0.3112.113 (Official Build) (64-bit)
Windows 10 Home

<script>
var $INPUT =$("#YOUR_ID_HERE");
$INPUT.autocomplete({
    source: function (request, response) {
        var suggestions = [];
        suggestions.push({
            "label": "test",
            "value": "test"
        });
        suggestions.push({
            "label": "test",
            "value": "test"
        });
        suggestions.push({
            "label": "test",
            "value": "test"
        });
        suggestions.push({
            "label": "test",
            "value": "test"
        });
        suggestions.push({
            "label": "test",
            "value": "test"
        });

        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
        response(suggestions);
    },
});
</script>

Mario