Speed up jQuery UI Autocomplete Combobox with very large select lists

/ Published in: jQuery
Save to your folder(s)

With the current combobox implementation, the full list is emptied and re-rendered every time you expand the dropdown. Also you are stuck with setting the minLength to 0, because it has to do an empty search to get the full list.

Here is my own implementation extending the autocomplete widget. It renders the full list just once, and reuses it whenever the dropdown button is clicked. This also removes the dependence of the option minLength = 0. It also works with arrays, and ajax as list source. Also if you have multiple large list, the widget initialization is added to a queue so it can run in the background, and not freeze the browser.

URL: http://darrenhuskie.com/

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.