jQuery is junk, you are not quite there yet if you promote it (especially
here where it has been literally discussed to death), and they are fools for
trusting it with their production code. For it is painfully inefficient
(slow, memory-expensive, bloated) and incompatible *inside*, and the next
time it encounters an unknown, but reasonably standards-compliant browser,
it might as well break.
Ultimately, it leads to a quite dangerous dependency, to code that does
everything with jQuery, even if a few, much more readable and maintainable
lines without jQuery would have sufficed; like the saying goes, if all you
know is to use a hammer, every problem looks like a nail. I've seen itbefore.
Well, I can only speak from experience. I write code for a major
retailer with a lousy offshoring strategy for the backend (they
actually do much of the back end work on the front end which means we
don't have full control among other insanely wrong things about that
situation) and it's a massive, bloated site with literally thousands
of lines in the HTML on every page, most of which are whitespace left
in place by a hopelessly outdated version of IBM's lovely WebSphere
Ecommerce application. Barring some serious staffing changes we will
not be serving valid pages any time soon. So yes, there's a lot of
stuff for JQ to trip over on our site.
When I was still pretty new I rewrote our carousel code from scratch
because the old one (written by another hacktacular offshore team) was
actually making the entire page choke when you resized the windows
among many other frustrating things. What I was not prepared for was
the sheer volume of our site and the fact that we literally had a
carousel or four (in one case) on just about every single possible
page vaguely relating to the browsing of products. Literally dozens of
implementations.
Overriding style sheets in places they didn't belong has been a
nightmare. Details concerning the data that gets fed into the page
from a third party and keeps breaking because our markup gets
overwritten all the time has been a nightmare. The offshore guys doing
that thing they do where they add a million checks for whether
incoming data is valid "just in case" has been a nightmare (do they
get that from Java or something?).
Yet nothing internal to that object I wrote with a lot of JQ has been
a problem on any browser. It lazy loads items as you scroll. It's
elastic with auto-margin expansion and item auto-inserting action as
you resize. The animations are smooth. It handles vertical and
horizontal carousels. And it has more options for alternate behavior
than I really want to go into. That seems pretty stable to me.
But then, perhaps you're right and I'm not 'there yet' by which I
assume you mean, where you are, which would explain why I'm not having
the same problems with the framework you've had. Perhaps when I'm
closer to your lofty perch I'll be attempting the sorts of acts of
JavaScript wizardry that enable one to see how hopelessly bloated
JQuery, an actively-maintained 15K framework the size of medium-ish
jpeg, truly is.
I was not aware of any issues with attr as I spend more time using JQ
than arguing about it. Links are helpful as Google has not been.