r/programming • • Dec 20 '10

A Christmas Tree in 1k of Javascript

http://www.romancortes.com/blog/how-i-did-the-1kb-christmas-tree/
1.1k Upvotes

221 comments sorted by

View all comments

42

u/ImTheGuyWithTheGun Dec 20 '10 edited Dec 20 '10

Amazing how much smoother this runs in Chrome compared to Firefox. And IE8 - forget about it.

EDIT: Safari 5 seems even worse than Firefox. My system is a core-i5 w/ 6GB on Win7 - should be plenty of horsepower.

7

u/krische Dec 20 '10

It was about the same speed wise for me in Firefox 4 beta 7 and Opera 11 as it was in Chrome.

6

u/ImTheGuyWithTheGun Dec 20 '10

I'm using FF 3.6.9. I know FF 4 supposedly has a much faster JS-engine -- good to hear that it's true. But in 3.6, it runs at a fraction of the framerate compared to chrome.

1

u/pytechd Dec 20 '10

FF 4 also has hardware acceleration that helps a ton.

2

u/ascendant512 Dec 21 '10

Hardware acceleration does not affect javascript. It affects HTML5 and CSS.

5

u/longmover79 Dec 20 '10

Smoothest/Fastest award goes to Safari followed by Chrome then FF a significant last (on mine at least)

3

u/ImTheGuyWithTheGun Dec 20 '10

Safari is a slide-show for me (dual core on Win7). Firefox is better, but still jittery. Chrome is silky smooth.

6

u/cruzin Dec 20 '10

Safari and Chrome look the same for me: smooth, no jitters. I'm using OS X, not Win7 though.

5

u/[deleted] Dec 20 '10

Seconded, Safari and Chrome are pretty much neck-to-neck, with Safari being slightly faster (in my highly unscientific side-by-side comparison (OSX, i7)).

1

u/[deleted] Dec 21 '10

Safari for Windows is absolutely not on par with the Mac version in many respects. Sounds like the JS engine is one of them.

1

u/[deleted] Dec 21 '10

Firefox 4 is much better in regard to JS speed, there's no question. Sites like Yahoo News made FF 3.6 freak out a bit (specifically the Linux) while it was loading, and the same site is very smooth in FF 4.