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 [...]
Category Archives: Javascript
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:
function AnimationType(curve, <other arguments>) { function animate(t) { [...]
Don’t Software Engineers Write JavaScript?
The other day, I posted the following to the Prototype Core mailing list:
Has anyone taken the time to verify that the numerous warnings generated by running JavaScript Lint against Prototype are innocuous? Prototype 1.5.1 generates 160 warnings. For example: prototype.js:2300: WARNING: undeclared identifier: node [...]
Simple Animation
Most JavaScript libraries support some animation of one variety or another. Nothing new there. I’d like to share the animation framework I’ve been developing for my HTML Bindings library. It builds on some of the lessons I’ve learned about developing animations for the iPhone.
Working With QuickTime
Lately, I’ve been working with QuickTime quite a bit. And while it’s amazingly cool to have movies embedded into a page. There are some real tricks and caveats to keep in mind.
Once thing have settled down, I’m going to write up what I’ve learned about making QuickTime work in all the browsers — meaning Safari, [...]