2 ms·
Your assumption that everyone can write more efficient code than jQuery isn't making sense.
by h1d 7y ago
Your assumption that everyone can write more efficient code than jQuery isn't making sense.
- masswerk 7y agoIt's certainly a matter of balance: if you need just a simple functionality or a single effect, loading (and compiling) the entirety of jQuery may not be the wisest. Similarly, I've seen d3.js loaded just to get a canvas element by 4 lines of code, where a single vanilla line would have done. (Edit: Notably, my argument was about the effort involved.)