WebAppers

/ best free open source web resources /

Shopify

How to Create the 1kb 3D Christmas Tree

Posted · Category: License Free

JS1k is a really nice contest for coding tiny 1 kb Javascript programs and try to do something nice in that few available space. Román Cortés has created a a 3D Christmas tree. He used several tricks to make the code fit in 1 kb.

The most of them are the usual tricks for reducing Javascript code size, like renaming variables to single character names, removing white spaces, unnecesary semi-colons and so on. The Christmas tree looks amazing, however it doesn’t work in IE, and works slow in some browsers. Merry Christmas!

christmas-tree-javascript

Requirements: Javascript enabled
Demo: http://js1k.com/2010-xmas/demo/856
License: License Free

4 Comments
  • http://zachinglis.com Zach Inglis

    Surely if it takes forever to load it’s missing the point of why we aim for small Javascript files; which is ultimately speed.

  • http://blog.prime.ba PR i Marketing Agencija

    Realy Nice!

  • Staxx

    Merry Xmass to you too!

  • http://www.kenverhaegen.be Ken Verhaegen

    Wow, I wished I could do things like this, this is EPIC.

Supported By

Deals

Web Browsers Icon Set
Food Icon Set
Flat Icon Set

Flat Icon Set

100 icons