markjs / jquery-dependent-selects

A jQuery plugin to allow multi-level select boxes that degrade gracefully.
http://markjs.github.com/jquery-dependent-selects/
MIT License
56 stars 23 forks source link

Too slow #16

Closed asiniy closed 10 years ago

asiniy commented 10 years ago

I have just for about 1200 options in select with depth == 3. Why plugin work too slow?

asiniy commented 10 years ago

The solution is to use lib: https://github.com/dnasir/jquery-cascading-dropdown

This library seems outdating

tablatronix commented 10 years ago

Does this plugin generate all selects in the DOM on init? not dynamically on select or at least cache them somewhere outside of dom?

asiniy commented 10 years ago

@tablatronix it seems create them!

tablatronix commented 10 years ago

yes, that is definitely causing a slowness, it should replace the select set in real time from a precalulated array, and reuse the same element. Not pregen every possible sub select and show hide them.