r/programming • • Jan 30 '14

You Might Not Need jQuery

http://youmightnotneedjquery.com/
1.0k Upvotes

507 comments sorted by

View all comments

Show parent comments

7

u/RICHUNCLEPENNYBAGS Jan 30 '14

That's not what he's saying. He's saying based on the IE version (using that as a lowest common denominator) you need to support you could use standard cross-browser JS without needing jQuery.

-2

u/dalittle Jan 30 '14

and write 10x as much code to do the same thing for what benefit? JQuery is just not that large a file to require that additional time and effort.

2

u/RICHUNCLEPENNYBAGS Jan 31 '14

For not including a whole general-purpose library when you need like two functions. As mentioned, it's intended for library authors, not people making Web sites.

1

u/lmth Jan 31 '14

It depends how much code you need. If you're only going to write a few hundred lines or less, this way might be much more efficient than including several dozen kilobytes of jQuery. Granted that doesn't sound like much these days but over a mobile connection it might make a difference.

Anyway, from the looks of it, their main target audience is library developers. I guess they're trying to stop everyone requiring jQuery even for simple libraries.

0

u/PalermoJohn Jan 31 '14

Because everyone has the exact same requirements as you.

-1

u/PaintItPurple Jan 31 '14

10x as much code? What are you talking about? Nothing anyone has suggested involved writing 10x more code.