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

  • SEARCH
  • Home
  • 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 8065097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:34:03+00:00 2026-06-05T11:34:03+00:00

I developed a iPhone App with JqueryMobile and Phoenagap. I minified all files with

  • 0

I developed a iPhone App with JqueryMobile and Phoenagap. I minified all files with code, deleted unused files, but app is still quite slow. Problem is. If i tap on button transformation will started appdrox. after 1 second. I Would like to do pages transitions more quick.

I also disable unused part od device (Camera, etc,) but is it still slow.

Can anybody help me With this problem?

I testing on iPhone 4g.

  • 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-06-05T11:34:05+00:00Added an answer on June 5, 2026 at 11:34 am

    Pointers for improving performance

    Cache jQuery Objects

    Ex: var header = $('#header');
    

    Consider alternatives to:

    • jQuery.each()
    • .show()
    • .hide()
    • .toggle()

    Changing to display:none is much faster. Maybe just use addClass('hidden') and removeClass('hidden')

    Minimize the use of slow jQuery methods
    O(n^2)

    • remove()
    • html()
    • empty()

    The following methods are expensive as well:

    • append()
    • prepend()
    • before()
    • after()

    The process behind these manipulation methods is the following: cleaning the input string, converting the string into a DOM fragment and injecting it into the DOM.

    Optimize selectors:

    In order of performance:

    • id (due to uniqueness)
    • tag
    • name, class (both require checking attributes of every DOM element)

    Get specific, preferably choosing a parent’s id to start with:

        $('#test p.description').removeClass('hidden');
        instead of 
        $('.description').removeClass('hidden');
    

    Use the child selector where possible instead of descendant selector:

        $('div > p').hide(); or $('div').children('p'); 
        instead of
        $('div p').hide(); or $('div').find('p'); 
    

    Use find over context:

        $('div').find('p');
        instead of
        $('div', 'p');
    

    Use .filter() instead of using tag selectors:

        $('div.name').filter(':input');
        instead of
        $('div.name :input');
    

    Memoization:

    var myFunc = function (param) {
        if (!myFunc.cache.hasOwnProperty(param)) {
                var result = {};
                // ... expensive operation ...
                myFunc.cache[param] = result;
        }
        return myFunc.cache[param];
    };
    
    // cache storage
    myFunc.cache = {};
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed iPhone app which contains a 80MB audio files and 20MB images
I have developed an iphone app for a client. Can I code sign app
I developed an iPhone app under iOS 5.0, and it works fine. But when
I've developed an iPhone app but found out that I can't userhe ne I've
I have developed my first iphone app, but have some problems with the auto
I've got an app that I've developed for the iPhone, but now want to
I had my iPhone app working, developed with Storyboard. I decided to take all
I've developed an iPhone app that has been running MPMoviePlayer (pre 3.2 SDK) with
Possible Duplicate: Create provisioning profile in iphone application i developed my iphone app and
I was wondering if the Twitter app for iPhone developed by Twitter consumes from

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.