Note that there are some explanatory texts on larger screens.

plurals
  1. POListview with many items is too slow when create
    text
    copied!<p>I work on mobile app using and phonegap , the app have JqueryMobile listview with many items (more than 20 items <strong>li</strong> ) and every <strong>li</strong> have textbox and 3 radio buttons , when i try to create and refresh listview using this code :</p> <pre class="lang-js prettyprint-override"><code>$("#ListView").trigger('create').listview().listview("refresh"); </code></pre> <p>It takes 15 second to create the listview .</p> <p>any one know how i can speed the create of listview with many items?</p> <p>below handelbar template that i used to populate listview:</p> <pre class="lang-html prettyprint-override"><code>&lt;ul data-role="listview" data-inset="true" id="lstQuestions"&gt; {{#each Data}} &lt;li data-role="fieldcontain" &gt; &lt;label &gt;{{DOrder}} - {{Title}}&lt;/label&gt; &lt;fieldset data-role="controlgroup" data-type="horizontal" &gt; &lt;input type="radio" name="rdo-{{ID}}" id="rdo-{{InspectionID}}-{{ID}}-3" value="3" data-theme="c" /&gt; &lt;label for="rdo-{{InspectionID}}-{{ID}}-3"&gt;Nothing&lt;/label&gt; &lt;input type="radio" name="rdo-{{ID}}" id="rdo-{{InspectionID}}-{{ID}}-2" value="2" data-theme="c" /&gt; &lt;label for="rdo-{{InspectionID}}-{{ID}}-2"&gt;No&lt;/label&gt; &lt;input type="radio" name="rdo-{{ID}}" id="rdo-{{InspectionID}}-{{ID}}-1" value="1" data-theme="c" /&gt; &lt;label for="rdo-{{InspectionID}}-{{ID}}-1"&gt;Yes&lt;/label&gt; &lt;/fieldset&gt; &lt;fieldset data-role="controlgroup" class="fieldsetClass"&gt; &lt;label for="txt-{{ID}}"&gt;Comment&lt;/label&gt; &lt;input type="text" id="txt-{{ID}}" name="txt-{{ID}}" value="{{Comment}}" /&gt; &lt;/fieldset&gt; &lt;/li&gt; {{/each}} &lt;/ul&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload