top | item 8842118

VanillaJS Framework Announced

31 points| zackify | 11 years ago |vanilla-js.com | reply

10 comments

order
[+] taypo|11 years ago|reply
How is this a fair comparison:

Vanilla JS var s = document.getElementById('thing').style; s.opacity = 1; (function fade(){(s.opacity-=.1)<0?s.display="none":setTimeout(fade,40)})();

jQuery <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script> $('#thing').fadeOut(); </script>

[+] josefdlange|11 years ago|reply
It took me about five minutes to realize how dumb I was and that this was literally Vanilla JS.
[+] iamlolz|11 years ago|reply
Yep, it had me scratching my head.
[+] smt88|11 years ago|reply
I love this so much. I'd give it a million upvotes if I could.
[+] icedchai|11 years ago|reply
You love extra typing for no reason? I see the point but jQuery is still much more concise.
[+] welly|11 years ago|reply
You should write a script to create a million users and for them to automatically upvote this post.