2 ms·
I'm not sure if that's true. I find jQuery much easier to maintain than vanilla or even some modern JS libraries. > $("#button").on('click', function(){ > $
by legitster 5y ago
I'm not sure if that's true. I find jQuery much easier to maintain than vanilla or even some modern JS libraries.
> $("#button").on('click', function(){
> $(".modal").slideUp();
> });
Obviously a simple example, but this is really easy to understand - even for a non-programmer! The equivalent vanilla JS to do this is honestly pretty nasty in comparison.
The only problems I have seen when maintaining jQuery is when someone wants to drop in a bunch of custom functions they have designed in vanilla JS - or try to treat it as a replacement for a front-end framework.
But for it's intended purpose of adding interactivity into HTML content, I think it is still the king.