JQuery Optimization: Is there any way to speed up the rendering of the FlexSelect control?
- by Sephrial
Greetings,
I am new to jQuery, and I have a performance problem with the FlexSelect control where it takes about 5 seconds to render the dropdown control (in the renderDropdown() function). The dropdown list contains about 5000 element. I believe all the runtime is attributed to the following block of code:
var list = this.dropdownList.html("");
$.each(this.results, function() {
list.append($("<li/>").html(this.name));
});
Question: Are there any alternatives that would build this list of elements in a more inefficient manner?