Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6816857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:58:34+00:00 2026-05-26T20:58:34+00:00

We are debating between two approaches to displaying device contacts on a mobile app

  • 0

We are debating between two approaches to displaying device contacts on a mobile app powered by jQuery Mobile.

We’re building for the iPhone.

1) On each keystroke, filter the contacts in native code (via PhoneGap) and pass only the matching contacts to the UIWebView.

2) On load, pass all contacts to the UIWebView and perform keystroke filtering within the web app using jQuery.

The advantage to #2 is after an initial delay, each search for contacts is more responsive. The downside is loading all the contacts, which seems wasteful.

The broader question is: at what DOM size will jQuery Mobile start to slow down? For instance, would creating 2000 LI elements (with strings about 20 chars long) impair performance noticeably?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:58:35+00:00Added an answer on May 26, 2026 at 8:58 pm

    Ultimately, I think you’ll find that doing the filtering in native code (option 2) is going to be much faster than even the Nitro engine in iOS can provide. jQuery Mobile has been using 400 list items as their test bed. Release Candidate 3 has taken massive steps to improve the performance of listitems. iOS and Android will both render a list of 400 in about 1.5 seconds. You can see the relative stats and breakdowns on JQMs blog entry about RC3

    Let me throw out another suggestion. Call it, option 3. Do all filtering in native code where it is likely to geometrically faster. Then, as you are rendering out the listview, render it out as a prerendered listview. Take advantage of the jquery mobile CSS but don’t render the list using the javascript library. Just pre-render the content so you don’t have worry about massive amounts of DOM manipulations.

    So, instead of rendering out…

    <ul data-role="listview">
         <li><a href="tel:9999999999">Lastname, Firstname</a></li>
         <li><a href="tel:9999999999">Lastname, Firstname</a></li>
    <ul>
    

    Try rendering it out directly…

    <ul data-role="listview" class="ui-listview">
        <li data-theme="c" class="ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-btn-hover-c ui-btn-up-c"><div class="ui-btn-inner ui-li" aria-hidden="true"><div class="ui-btn-text"><a href="index.html" class="ui-link-inherit">Acura</a></div><span class="ui-icon ui-icon-arrow-r ui-icon-shadow"></span></div></li>
        <li data-theme="c" class="ui-btn ui-btn-up-c ui-btn-icon-right ui-li-has-arrow ui-li"><div class="ui-btn-inner ui-li" aria-hidden="true"><div class="ui-btn-text"><a href="index.html" class="ui-link-inherit">Audi</a></div><span class="ui-icon ui-icon-arrow-r ui-icon-shadow"></span></div></li>
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm designing a validation service and I'm debating between two different method signatures for
I've been tasked with making a prototype web application, and i'm debating between using
I am debating between using MsSQL and SQLSrv to connect to SQL Server. Our
I'm looking into adding scripting to my C# application. I've been debating between Lua
I am going to be building a web app soon where I will need
I'm building a REST api and debating what format should I use for the
I'm debating three different approaches to to storing sitewide settings for a web application.
I am debating whether or not to use SQLite for my app. I have
I overheard two of my coworkers debating this topic and I was wondering what
I have a table and am debating between 2 different ways to store information.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.