|
|
|
|
|
by benesch
4933 days ago
|
|
I'm certainly not a jQuery fanboy, but jQuery's DOM-manipulation functions are certainly more concise and abstract away some of the funky internals (NodeLists, etc.). That said, I've always found jQuery's function naming to be particularly ambiguous. There's no indication that "find" searches an element's descendants for a matching CSS selector based on its name. On the other hand, vanilla JS's element.getElementsByTagName is so much more verbose. Back in the day I found PrototypeJS [0] to be much better organized and offer the same feature set, but it's largely fallen out of use since Rails dropped it. mootools is nice but the docs, while comprehensive, are arranged in no logical order. Every time I try to pick up mootools I end up running around the docs in circles. tl;dr jQuery is overblown but I think there's room for improvement over vanilla JS. Plus there's always the (literally) hundreds of plugins for every possible application of jQuery. [0] http://prototypejs.org |
|
I'd love to see a JS library that doesn't try to add a lot of functionality, but only decruftify the browser API.
The right aim would be to end up with a complete API that might actually replace the normal JS api (DOM+otherwise) in actual browsers.