Search and Top Navigation
#15237 closed bug (duplicate)
Opened September 12, 2017 07:13PM UTC
Closed September 12, 2017 07:43PM UTC
bug: Autocomplete 1.12.0 and 1.12.1 - suggestions slowing down until it hangs webbrowser
Reported by: | mariotherealone | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.autocomplete | Version: | 1.12.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi guys.
I've notice serious problem with autocomplete.
It gets slower and slower with every suggestion even if I don't deliver data from an ajax call
@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 laggy. After few clicks you have to close webbrowser.
It works ok in 1.11.4 for example.
Tested on chrome Version 60.0.3112.113 (Official Build) (64-bit)
Windows 10 Home
https://jsfiddle.net/2g2yd9vf/
Mario
Attachments (0)
Change History (3)
Changed September 12, 2017 07:24PM UTC by comment:1
description: | Hi guys. \ \ I've notice serious problem with autocomplete. \ \ It gets slower and slower with every suggestion even if I don't deliver data from an ajax call \ \ That's my headers I'm using \ \ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> \ <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js"></script> \ \ or \ \ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> \ <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> \ \ It works ok in 1.11.4 for example. \ \ 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 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 → Hi guys. \ \ I've notice serious problem with autocomplete. \ \ It gets slower and slower with every suggestion even if I don't deliver data from an ajax call \ \ That's my headers I'm using \ \ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> \ <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js"></script> \ \ or \ \ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> \ <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> \ \ It works ok in 1.11.4 for example. \ \ 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 laggy. After few clicks you have to close webbrowser. \ \ Tested on chrome Version 60.0.3112.113 (Official Build) (64-bit) \ Windows 10 Home \ \ https://jsfiddle.net/2g2yd9vf/ \ \ Mario |
---|
Changed September 12, 2017 07:29PM UTC by comment:2
description: | Hi guys. \ \ I've notice serious problem with autocomplete. \ \ It gets slower and slower with every suggestion even if I don't deliver data from an ajax call \ \ That's my headers I'm using \ \ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> \ <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js"></script> \ \ or \ \ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> \ <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> \ \ It works ok in 1.11.4 for example. \ \ 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 laggy. After few clicks you have to close webbrowser. \ \ Tested on chrome Version 60.0.3112.113 (Official Build) (64-bit) \ Windows 10 Home \ \ https://jsfiddle.net/2g2yd9vf/ \ \ Mario → Hi guys. \ \ I've notice serious problem with autocomplete. \ \ It gets slower and slower with every suggestion even if I don't deliver data from an ajax call \ \ @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 laggy. After few clicks you have to close webbrowser. \ \ It works ok in 1.11.4 for example. \ \ Tested on chrome Version 60.0.3112.113 (Official Build) (64-bit) \ Windows 10 Home \ \ https://jsfiddle.net/2g2yd9vf/ \ \ Mario |
---|