user1791809
user1791809

Reputation: 61

how to speed up phonegap jquery mobile page changes

I'm currently working with a developer in the early stages of a relatively straightforward data capture iPad app using Phone Gap. From a UI functionally, the app is essentially:-

The key issue we are struggling to get over at the moment is that whenever you move to another page (by swiping or selecting on the navigator), there is a 1-2 sec delay before the transition kicks in and new page comes. This 1-2 sec delay is present even if we remove images from the pages. We want to get this delay down to <0.5 sec and/or for it to "feel" more like a native app, in terms of moving around the pages.

From a technical level, this is what the application consists of:-

We are new to PhoneGap and iOS app development. We're continuing to research ways to try and get over this speed delay and would like to know:-

  1. Has anyone developed an app like this and managed to get the page switching / swiping to happen smoothly and near-natively? (and most definitely less than 1 sec delay)
  2. Are there any reliable tips / avenues to explore in order to significantly improve the page switching speed?
  3. Does anyone feel strongly that what we're seeing is probably the best you can get when developing with PhoneGap and if so, is there an alternative which also uses mainly web technologies, doesn't require Xcode knowledge, and is more visually performant than this?

I would be grateful for any tips and insight anyone can provide on this because if there is no way forward on fixing this delay and sluggishness, we may need to abandon Phone Gap and look at a native solution which will not be a straightforward option in our situation. Many many thanks in advance for your support on my first ever post to stack overflow!

Upvotes: 6

Views: 5552

Answers (2)

MikeZ
MikeZ

Reputation: 866

jQuery Mobile adds a 300ms delay by default to tap events - it's listening for things like double-taps and swipes. If you are not using any of these types of events, consider incorporating FastClick (available on this thread) which has solved my speed issues in my PhoneGap/jQueryMobile app.

Upvotes: 4

Farhan Ahmad
Farhan Ahmad

Reputation: 5198

My personal opinion here. I have not had much luck with trying to make jQuery mobile feel native. I use a framework called App-UI for handeling page transitions and as a basic framework for my app (this framework is super light weight). Then I design the UI with pure CSS. (this causes the app to feel more native - try to handel transitions using CSS3).

https://github.com/triceam/app-UI

This requires other dependencies which include:

Again, this is my own opinion. This is what has worked best for me when developing mobile app that feel native.

Upvotes: 3

Related Questions