Performance compiled app

3,004 views
Skip to first unread message

Lee Jenkins

unread,
Mar 27, 2012, 8:07:43 PM3/27/12
to phon...@googlegroups.com

Hi all,

I've been working on my first app using latest versions of jquery/jquery mobile with phonegap 1.41.

Android 2.3x on Samsung Exhibit
App Compiled on Phonegap Build.

While I know that jquery mobile can be a little slow by nature, imagine my surprise and disappointment when my compiled phonegap app UI is magnitudes slower running on my phone than running in the phone's native browser.

How can the compiled app be so noticeably less responsive than the same app running in the phone's native browser?  The responsiveness is completely unacceptable and my boss is already talking about going with Appcelerator instead...

Thanks for any tips.

Lee

Noli Sicad

unread,
Mar 27, 2012, 8:15:35 PM3/27/12
to phon...@googlegroups.com
Try using jQTouch b4. b4 is faster than jQuery Mobile now.

http://blog.jqtouch.com/

Scroll down to see the chart comparison (i.e. jQuery Mobile is big).

Noli

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>

Lee Jenkins

unread,
Mar 27, 2012, 9:21:21 PM3/27/12
to phon...@googlegroups.com

Thank you, Noli.

However, my point was that I'd think the performance should be better running under a native exe wrapper with a single webview as opposed to the phone's browser. 

The resultant android phonegap is at least 30% less responsive that the same app running in the browser on the same phone.

Chris Brody

unread,
Mar 28, 2012, 8:34:01 AM3/28/12
to phon...@googlegroups.com
They probably have a special Javascript engine that is only used for the phone's real web browser; iPhone was starting to do the same thing.

Chris

> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>

--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to

Kerri Shotts

unread,
Mar 31, 2012, 11:26:45 PM3/31/12
to phon...@googlegroups.com
The webview != the phone's browser. For awhile (IOS <5.0.1, I think?) Apple did the same thing where the webview had the older, slower javascript engine, but Safari had the newer, faster engine. The difference in performance could be as much as 50%. They did eventually move the javascript engine over, but for a while it was painful to see the disparate performance.

Unfortunately, there's probably nothing you can do about it, short of doing your own javascript engine and webview. Given that you're on Android, you may have a chance at that. (We iOS folk had no such hope, short of Apple fixing it on their own.) 

Best case is that while you have to do most of your development on a legitimate browser (for debugging), only ever test performance via phonegap. The simulator and the phone's browser will lie to you every time. 

> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>

--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to

Alfonso Gómez - Jordana

unread,
Aug 10, 2012, 5:27:37 AM8/10/12
to phon...@googlegroups.com
Check http://stackoverflow.com/a/11898837/867423

> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>

--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
Reply all
Reply to author
Forward
0 new messages