-
Notifications
You must be signed in to change notification settings - Fork 894
Closed
Description
https://github.com/javve/list/blob/master/src/list.js#L419
You can speed it up using native DOM methods, rather than innerHTML. Presently you're demanding the DOM be interpreted as a string and causing the browser to do a lot of re-rendering work, innerHTML is bad for performance, but will assassinate performance when inside a loop.
I'd suggest using text nodes or DOM fragments:
https://developer.mozilla.org/En/DOM/DocumentFragment
You have the opportunity to improve speed where you get the values as well: https://github.com/javve/list/blob/master/src/list.js#L410
Metadata
Metadata
Assignees
Labels
No labels