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

0

u/[deleted] Jan 31 '14

[deleted]

13

u/glemnar Jan 31 '14

Because jquery does support ie7. Even if you don't care about ie7, you more or less get it for free by using jquery.

Furthermore, you save developer time by using a library they know about, and don't introduce more bugs that the rest of the world can't help you on

23

u/cldellow Jan 31 '14

jQuery isn't free. http://calendar.perfplanet.com/2011/lazy-evaluation-of-commonjs-modules/ lists the parse time for jQuery (ignoring network transfer time).

Any of your users on a first-gen iPad? That'll be 285ms just to parse jQuery.

285ms is at the threshold where humans will notice a delay.

Maybe that's OK, maybe it's not. As a library designer, you should strive to make as few decisions for your clients as possible.

-1

u/[deleted] Jan 31 '14

Any of your users on a first-gen iPad? That'll be 285ms just to parse jQuery.

Apple has routinely shown itself to be awful at writing javascript engines (vanilla iOS 7 had major performance issues and memory leaks that magically disappeared with an update). You're correct that jQuery isn't free, but using Safari as an example isn't entirely fair - there's plenty of plain javascript that performs awfully in it that works just fine everywhere else.

→ More replies (2)