top | item 8842118 VanillaJS Framework Announced 31 points| zackify | 11 years ago |vanilla-js.com | reply 10 comments order hn newest [+] [-] 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. load replies (1) [+] [-] welly|11 years ago|reply You should write a script to create a million users and for them to automatically upvote this post. load replies (1) [+] [-] robinricard|11 years ago|reply Previous HN thread: https://news.ycombinator.com/item?id=4435547
[+] [-] 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. load replies (1) [+] [-] welly|11 years ago|reply You should write a script to create a million users and for them to automatically upvote this post. load replies (1)
[+] [-] icedchai|11 years ago|reply You love extra typing for no reason? I see the point but jQuery is still much more concise. load replies (1)
[+] [-] welly|11 years ago|reply You should write a script to create a million users and for them to automatically upvote this post. load replies (1)
[+] [-] robinricard|11 years ago|reply Previous HN thread: https://news.ycombinator.com/item?id=4435547
[+] [-] taypo|11 years ago|reply
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
[+] [-] iamlolz|11 years ago|reply
[+] [-] smt88|11 years ago|reply
[+] [-] icedchai|11 years ago|reply
[+] [-] welly|11 years ago|reply
[+] [-] robinricard|11 years ago|reply