This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Suggestion #2: jquery.mobile.listview.js#L229 #1502
Closed
Description
See the .appendTo() statement here:
https://github.com/jquery/jquery-mobile/blob/master/js/jquery.mobile.listview.js#L229
Suggestion: keep all the lists outside the DOM, stashing them with a tempArray.push(), and then iterating tempArray calling .listview() (L235) for each, and THEN pass the whole tempArray to appendTo() once, outside the $.each() loop.
Speedier :-) One DOM insertion instead of many, and all manipulations are outside the DOM.
Metadata
Metadata
Assignees
Labels
No labels