I decided to get a little festive on my blog. If you have a browser that supports SVG you should see what I mean. It should be fun for other special occasions too (think Google's graphic).
Have A Great Holiday Season!
I decided to get a little festive on my blog. If you have a browser that supports SVG you should see what I mean. It should be fun for other special occasions too (think Google's graphic).
Have A Great Holiday Season!
Congratulations!!! on FF1.5 I’ve got 100% CPU usage on a 1.6Ghz laptop!!! ๐
Merry Christmas ๐
Hey, I thought you were an Opera user? ๐
Here’s my results:
Firefox 1.5: 100% CPU
Opera 9 TP1: 100% CPU
IE+ASV: 20% CPU
It’s clear that native implementations of SVG have a ways to go before they will be used for animations and heavy scripting.
I am going to take a shot at optimizing the script, this was the best I could come up with before the holiday rush of visitors and travelling.
Don’t forget this is scripted animation, not SMIL. SMIL should be optimized for animation (as opposed to all the arbitrary stuff that could be done in script). Just trying to be clear – the slow thing is manipulating SVG in Javascript, not the (hypothetical) animation in SVG, if you get what I mean.
Hopefully we’ll get both in the fututre: faster Javascript in Mozilla and SMIL so that animation can be done in a declarative way.
True, SMIL may be faster than JavaScript, but for this purposes you would need some JavaScript to at least achieve a randomizing effect…unless you know of another option.