Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,442 Members 40,508 Now Online
XDA Developers Android and Mobile Development Forum

[Q] JavaScript performance - choppy & slow - is it normal?

Tip us?
 
sethbw
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Dec 2010
Default [Q] JavaScript performance - choppy & slow - is it normal?

The topic says it all,

I have a brand new Note 3, but JavaScript - in particular animations used in sites with accordion behavior is extremely choppy - it just looks and performs horribly.

Is this expected? Why is it like this? A friend's iPhone5s on the same exact pages is flawless & smooth.


Any accurate advice & information that will help me understand the root cause is much appreciated.

s
 
lesalloum
Old
#2  
lesalloum's Avatar
Senior Member
Thanks Meter 65
Posts: 259
Join Date: Jul 2012
Location: Beirut
Quote:
Originally Posted by sethbw View Post
The topic says it all,

I have a brand new Note 3, but JavaScript - in particular animations used in sites with accordion behavior is extremely choppy - it just looks and performs horribly.

Is this expected? Why is it like this? A friend's iPhone5s on the same exact pages is flawless & smooth.


Any accurate advice & information that will help me understand the root cause is much appreciated.

s
What browser are you using? would you share the link of the website?
 
sethbw
Old
(Last edited by sethbw; 16th April 2014 at 03:00 PM.) Reason: Wanted to clarify that the issue is not isolated to jQuery. Even though jQuery works wonderfully on iOS7..
#3  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Dec 2010
Quote:
Originally Posted by lesalloum View Post
What browser are you using? would you share the link of the website?
I tried both the built-in browser, which looks like a blue globe and just says "Internet". I also tried the latest version of Chrome. I did not have any other apps open when testing each one (that includes the other browser).

Any of these websites:
http://aexmachina.github.io/tabcordion/
http://jqueryui.com/accordion/
http://css-tricks.com/snippets/jquer...ery-accordion/
http://www.jacklmoore.com/demo/accordion.html

Basically anything on the jQuery ui website, or jQuery website that involve animations just looks choppy.

I wouldn't normally ask, but it's not just jQuery either - there are a myriad of other animation frameworks based in JS that claim to be many times faster - and while they do appear to perform a little better in isolated cases, the performance quickly degrades once I've got enough going on in the page, or if I let it go for too long...
 
lesalloum
Old
#4  
lesalloum's Avatar
Senior Member
Thanks Meter 65
Posts: 259
Join Date: Jul 2012
Location: Beirut
Quote:
Originally Posted by sethbw View Post
I tried both the built-in browser, which looks like a blue globe and just says "Internet". I also tried the latest version of Chrome. I did not have any other apps open when testing each one (that includes the other browser).

Any of these websites:
http://aexmachina.github.io/tabcordion/
http://jqueryui.com/accordion/
http://css-tricks.com/snippets/jquer...ery-accordion/
http://www.jacklmoore.com/demo/accordion.html

Basically anything on the jQuery ui website, or jQuery website that involve animations just looks choppy.

I wouldn't normally ask, but it's not just jQuery either - there are a myriad of other animation frameworks based in JS that claim to be many times faster - and while they do appear to perform a little better in isolated cases, the performance quickly degrades once I've got enough going on in the page, or if I let it go for too long...
i just tried this on dolphin and its very smooth, i never use the stock browser but a clear browser's cache would help
 
sethbw
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Dec 2010
Quote:
Originally Posted by lesalloum View Post
i just tried this on dolphin and its very smooth, i never use the stock browser but a clear browser's cache would help
Clearing the cache doesn't help.

Dolphin is nice yes, but I'm more interested in knowing the reasons why. I've used Dolphin before, it's great, it's just not going to help me find out how to improve this type of thing for Android. I'm quite surprised by growing number of issues with Android and the Android UI.

I feel silly for being excited to switch back to Android. Swype was the only thing I think I actually gained aside from having an Android test device. Just frustrated atm. This is not something I would expect from Android. I thought it was much better.
Tags
javascript performance android galaxy-s
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes