News for hackers. Stuff that matters.
Re:You might not need jQuery by jeena on Thursday January 30, 2014 @03:53PM (#7153292)
> $("#something") instead of document.getElementById("something")

or even just document.querySelectorAll("#something")

Re:You might not need jQuery by davej on Friday January 31, 2014 @04:14AM (#7155973)
You lose some browser compatibility with qSA, whereas gEBId works everywhere. You need IE8+ for qSA, and you need to ensure the page isn't in quirks mode. If you're OK with that then you can also do: var $ = document.querySelectorAll.

Probably best to do this within a closure so that you're not hijacking any jQuery instances that may be on the page.