Skip to content
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
@StevenBlack

Description

@StevenBlack

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions