JQuery Optimization: Is there any way to speed up the rendering of the FlexSelect control?
Posted
by Sephrial
on Stack Overflow
See other posts from Stack Overflow
or by Sephrial
Published on 2010-04-28T05:36:47Z
Indexed on
2010/04/28
5:43 UTC
Read the original article
Hit count: 197
jquery-plugins
|Performance
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?
© Stack Overflow or respective owner