Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP sethbw

13th April 2014, 08:57 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
12 posts
Join Date:Joined: Dec 2010
More
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
16th April 2014, 08:45 AM   |  #2  
lesalloum's Avatar
Senior Member
Beirut
Thanks Meter: 65
 
259 posts
Join Date:Joined: Jul 2012
More
Quote:
Originally Posted by sethbw

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?
16th April 2014, 03:55 PM   |  #3  
OP Junior Member
Thanks Meter: 0
 
12 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by lesalloum

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...
Last edited by sethbw; 16th April 2014 at 04:00 PM. Reason: Wanted to clarify that the issue is not isolated to jQuery. Even though jQuery works wonderfully on iOS7..
16th April 2014, 04:04 PM   |  #4  
lesalloum's Avatar
Senior Member
Beirut
Thanks Meter: 65
 
259 posts
Join Date:Joined: Jul 2012
More
Quote:
Originally Posted by sethbw

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
16th April 2014, 05:37 PM   |  #5  
OP Junior Member
Thanks Meter: 0
 
12 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by lesalloum

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.
Post Reply Subscribe to Thread

Tags
javascript performance android galaxy-s
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes