November, 2007

Spooky Code or How to Make Animations Run Smoother

So I’ve been thinking about JavaScript performance, because I’m hoping to make my animations run smoother. The actual animation steps (changing position, opacity, or size of a node) can’t be improved by anyone other than the browser vendor. So what can I do to optimise my code and allow me to get more raw horsepower out of the same browser?

Who’s Faster: Function or Object

A little while ago, I wrote about a simple animation package I was working on. I made the following wondrous claim:

You may have been wondering why the animation functions are structured like they are. All animation functions follow the same structure: