The article “You Might Not Need jQuery” complains that jquery is an all-or-nothing tool.
“jQuery seeks to replace them all wholesale. By returning a jQuery object rather than a NodeList, built-in browser methods are essentially off limits, meaning you’re locked into the jQuery way of doing everything. it means there are two duplicate ways of doing everything. There are, however, libraries that have adopted an API that will be reassuringly familiar to jQuery addicts, but that return a NodeList rather than an object”
The article mentions some libs which don’t have that drawback:
Bliss.js
Bling.js
min.js
What other jquery-like libs can be co-mingled with vanilla javascript code?
Which are the best in 2020?
The CanIUse website lets you find out if your technique will have any problems with older browsers you care about, and many of those MDN pages have polyfills at the end to provide support to older web browsers.
Then don’t bother with cross-browser stuff. That’s not likely to be a problem now.
MDN is the Mozilla Developer Network. They’ve created some very useful JavaScript language documentation, which supplies information that works with a wide range of different web browsers.
That’s why you can use CanIUse to help you figure out how old the browsers are that have trouble. If you care about those browers then use a polyfill. If you don’t, then don’t.
Thx, as mentioned, i’m seeking alternative to jquery, which offer it’s advantages without the drawbacks. If you care to suggest some specific tools that you have used, great!
Ouch. Ok.
Umbrella says: “It is strongly influenced by jQuery with many similar methods.However there are some extra features like .handle() and some methods like .append() are more flexible.”
If offers each and cross-browser stuff. I don’t know whether it returns a nodelist. I assume there are other limitations compared to jq.
So, you don’t think umbrella may fulfill my request?
thx
You’ll find that it’s fallback is that it’s missing several features that are in jQuery.
But give it a go - you might not need, or even care about the differences.