I regularly reduce maintainable, easy to read code on the sites I work
on by more than half using JQ and I'm being fanatic.
And replace it with illegible code?
It's probably
been used to knock out megabytes of readable code on our sites in the
just the last couple months. That's worth a one-time cache of 15k for
the user who will never know the difference. Here's some more words.
For the last time (I hope). It is not 15K. It's silly to quote
compressed sizes as compression is not a constant. It sure isn't 15K
on the server or the user end, so why get hung up on the perceived
weight in transit? And it is hardly a one-time cache, even if it was
not patched and re-released constantly.
Until it breaks (or is exposed as broken in environments you didn't
test) and the client must download a new jQuery (or sit on their hands
for years waiting for one that fixes the problem).
I wonder if you understand what you are doing. Do you use the attr
method? If so, you are in for a shock as your "easy to read" code is
a cipher that even the authors of jQuery can't unravel. That's one.
If you want more, they are plenty in the archive (and discussed all
over the place at this point).
You made a bad choice. Every day until you realize this fact will be
spent digging a deeper hole for your clients (and really fouling up
their Web properties). You can observe fouled-up Web sites
everywhere. This is how they got fouled up.
It's not because it is a general-purpose and publicly available
script. There were lots of those before jQuery. It's because it is
(and always has been) a very bad script. So bad that it must be
reevaluated and rewritten constantly. That's contrary to its stated
goal of making thing easier for Web developers. Perhaps people just
skip testing and figure zero times anything is zero.
Not hard to see how this happened. Just imagine looking at browser
scripting through the eyes of developers who are several years
behind. I'd estimate jQuery has arrived in 2003 by now. Should catch
up long after it is irrelevant to do so (assuming technology moves on
from silly scripts that can't do anything properly to... anything at
all). Just because a lot of people have bought into it doesn't make
it a good idea. What you see is not the beginning of a movement, but
the (bitter) end. Hard to believe anyone would argue differently at
this point. The decade is almost over.