jquery-ui-multiselect-widget flickering while loading the data? -


jquery multiselect ui widget 1.14pre

this issue me long list. see below image onload , after load effect(click on link).

i tested list of 1600 items on mozilla machine , browser locked ~5 minutes.

https://camo.githubusercontent.com/3dc1a939065e6364e699eef8f08b9cd653741cf0/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f333439313130312f3335313235362f61636133333962652d613034322d313165322d393462382d3239396561333065663532632e706e67

example: suppose need show 1000 names in drop down on web page using multiselect.js. when web page loading names coming in <select><option</option></select> tags. after completing loading becoming multiselect drop down.

$(function(){     $("#"+ prefix + "schedule_id").multiselect({       header: 'travels',       noneselectedtext: 'travels',       selectedtext: 'travels',       prefix: prefix + 'travels',     }).select2; }); 

** while loading data in drop down flickering. showed in image 1) while loading page/data. 2) after loading page/data.

is there suggestion how solve this??

i guess in way ajax data loading - possibly causing successive re-initializations. try full data load value element before initializing/resetting drop down.

alternatively, consider storing data-set of dropdown options text file , have text file load option content instead of live ajax. work if the option content doesn't change quickly. (you run separate cycle regularly update option text file when needs be)

the third option recommend, use google type filtered selector instead. whole 1000 option list searched through matches, instead of trying render whole scrollable list.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -