9 ms·
I've done this before - you just end up rewriting jQuery hehe.
by catmanjan 6y ago
I've done this before - you just end up rewriting jQuery hehe.
- DarkWiiPlayer 6y agoYou'd end up writing a subset of jQuery that only has the parts you need and skips those where you almost wouldn't gain anything.
- 3131s 6y agoWell, except that jQuery and a number of third parties have already extracted or ported various subsets of jQuery and have packaged it already for easy integration.
- galaxyLogic 6y agoThat's a good solution if you need such a subset. But maybe you need just a single function. And maybe such a single function is currently already provided by the browser APIs. Or maybe there are packages of individual functions of JQuery? But that would serve little purpose IF the functionality is provided by current browsers. In any case I think the article serves a good purpose in explaining what are the most useful parts of JQuery and how you could implement them yourself with the more modern browsers if and when you need them. My preference is to avoid dependencies if I can and prefer depending on my own code which uses standard APIs if possible.
- catmanjan 6y agoOver time you end up adding just about everything back in as the app grows... But worse!
- galaxyLogic 6y agoProbably not for any given single app. Some apps need more JQuery-like functionality some less