views:

706

answers:

3

I've had enough with jquery's slowmolasse animation.

I'm not an expert, but however jQuery internals handles animation is too slow for me.

What alternatives do you suggest?

I've read: http://sixrevisions.com/javascript/10-impressive-javascript-animation-frameworks/

But it would be nice to know SO's opinions on the matter.

Thanks!

A: 

Any library can be slow if you make it do too much. It doesn't even need to do animation. Anyway, I like Processing.js because I know some Processing.org and I don't have to relearn.

zilupe
Yes but there's no doubt that jQuery's is ESPECIALLY slow.
Jourkey
@Jourkey - Based on what? Compared to what?
micmcg
[citation needed]
nickf
Come on, guys, doubtlessness needs no references. It's you who have to put some facts if you want to question doubtlessness.
zilupe
I'm not sure how to write a performance tester for animations, and I'm not willing to spend time doing so. But looking at jquery's animations for things of sufficient complexity it looks to my eye less smooth than other animation frameworks like GX. Oh, and also codewise I can say, this is not as good of a way of doing animations than so on and so forth. But if your animations is not of sufficient complexity for you to tell a difference, well then good for you.
Jourkey
jQuery consistently ranks last though in overall performance for modern frameworks (discounting prototype) : http://dante.dojotoolkit.org/taskspeed/report/charts.html so what does that tell you about the quality of its code.
Jourkey
A: 

Use the Web worker (http://ejohn.org/blog/web-workers/) and the canvas tag, if needed, and do your own animation. If you are just moving sprites it will be easy to do, though not every browser supports web workers. This would be the fastest javascript solution, I believe.

James Black
A: 
GaVrA