SelectBoxIt takes ~4seconds to apply to 200 comboboxes. Is that expected?
We have been using SelectBoxIt for a few months and noticed that our app gets really slow when we redraw part of the page with several comboboxes. After profiling we found out that SelectBoxIt is very slow to apply/refresh. Is that expected? Do you have a suggestion on how to speed it up?
Thank you.
Here is a demo of the problem http://sandbox.my.shiprush.com/static.shiprush.com/ship.app/demos/styled-select/trimmed2.html
Unfortunately, when you create so many drop downs at the same time, you are bound to have performance issues (since the DOM is slow). That being said, there is an obvious optimization that you can make.
Turn off the autoWidth option
Turning this option off should improve rendering performance by ~33%.
$('select').selectBoxIt({ 'autoWidth': false });
Aside from that, I'm not sure what else I can do. I am open to suggestions though.
It would be great if all
On Thu, Feb 6, 2014 at 9:55 PM, Greg Franko [email protected]:
Unfortunately, when you create so many drop downs at the same time, you are bound to have performance issues (since the DOM is slow). That being said, there is an obvious optimization that you can make.
Turn off the autoWidth option
Turning this option off should improve rendering performance by ~33%.
$('select').selectBoxIt({ 'autoWidth': false });
Aside from that, I'm not sure what else I can do. I am open to suggestions though.
Reply to this email directly or view it on GitHubhttps://github.com/gfranko/jquery.selectBoxIt.js/issues/248#issuecomment-34406242 .
I think that is reasonable. I'll look into providing an option like that for you.
awesome. Let me know when this is available - I will test/profile performance for you :)
On Tue, Feb 11, 2014 at 1:08 PM, Greg Franko [email protected]:
I think that is reasonable. I'll look into providing an option like that for you.
Reply to this email directly or view it on GitHubhttps://github.com/gfranko/jquery.selectBoxIt.js/issues/248#issuecomment-34807081 .
I have some issues with performance too. I have a big select that freezes IE11 when is populating. I think it would be better use .innerHTML method instead of pure jQuery as you can see here: http://jsperf.com/creating-complex-elements/30.