Reputation: 1211
I have a list of around 8,000 items (loading from MySQL) and I made a simple HTML select field to load all of them but the load time was more than 10-15 seconds every time. Then i changed it to jQuery autocomplete which is much better than simple select field but the delay is still 8-10 seconds everytime. Is there any way to decrease the load time?
I try this method jQuery UI Autocomplete Combobox Very Slow With Large Select Lists but it doesn't affect the loading speed
Upvotes: 1
Views: 2652
Reputation: 1
The problem with datalist is that it currently cannot be styled... An astounding oversight by W3 designers.
Otherwise, it is faster than jq-ui autocomplete with thousands of list items.
Upvotes: 0
Reputation: 196
You can also try html5 datalist
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
and you can also try light weight js http://leaverou.github.io/awesomplete/
Upvotes: 1