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 [...]
Monthly Archives: November 2007
Who’s Faster: Function or Object
7 Nov 2007 – 12:05 pm
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:
function AnimationType(curve, <other arguments>) { function animate(t) { [...]