05ddbec1a7
This improves the speeds of creating the `<option>` tags for array data. By creating the HTML ahead of time and putting it into an `<option>` element before passing it to jQuery, it cuts down on the time it takes for jQuery to process the HTML string and convert it into DOM elements. This proved to be incredibly slow. This also changes the `item` function to return early when the data exists. The `$e.data` call has also been switched to a `$.data` call, which doesn't need to check the DOM to see if the data attributes already exist. This cuts down on a bit of wasted time, as the `data` key should never be present in the DOM, and it should be ignored if it is. |
||
---|---|---|
.. | ||
array-tests.js | ||
array.html | ||
base-tests.js | ||
base.html | ||
select-tests.js | ||
select.html |