News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.