3 ms·
I have created one of the decently popular jQuery light (3kb) alternatives: https://umbrellajs.com/ https://umbrellajs.com/ And I do not always recommend it, i
by franciscop 8y ago
I have created one of the decently popular jQuery light (3kb) alternatives: https://umbrellajs.com/ https://umbrellajs.com/
And I do not always recommend it, indeed for smaller projects you might be better off with plain Javascript: https://umbrellajs.com/documentation#native-methods https://umbrellajs.com/documentation#native-methods
But native Javascript, as explained there, is more error-prone while jQuery (and Umbrella) are more permissive. Both have their pros and cons, but if you try to make native Javascript as permissive as jQuery you'll end up with a big mess. Unless you create some internal methods, which then you bundle, test, release, and... end up with another jQuery clone!