3

If you hate jQuery because you say it's "bulky", then please explain these modern JavaScript frameworks with a bajesus of configuration to make it just work plus the node_modules.

Comments
  • 6
    @Charon92 I actually think vanilla js is prettier than jquery
  • 2
    @Charon92 just look at ajax vs fetch calls. Eww
  • 4
    jQuery is obsolete for several reasons:

    1) Modern vanilla JS can usually do its job for simple cases with direct DOM manipulation.

    2) Simple animations are available via CSS transitions which the browser can schedule in parallel by itself, and complex animations usually don't belong on a production website.

    3) For complex things, you don't even want direct DOM manipulation because that ends up in a mess. That's what frameworks address.

    4) Why incur another dependency if it isn't necessary?

    5) It's usually another file that is downloaded, and while http/2 makes that less of a problem, it's still one additional round trip. Especially on mobile, you don't want useless roundtrips.

    The only reason for jQuery today is if you have legacy jQuery plugins and nobody would pay for a rewrite.

    I've got a widget of medium complexity on my site, and it was written 10 years ago. Took me two days to convert that into vanilla JS.
  • 3
    jQuery is likely slower than just using the native JS due to overhead of abstracting calls to DOM functions. But the DOM functions themselves nowadays are easy to use without abstraction.
  • 2
    Most modern library only do one thing each unlike jQuery that do everything with the annoying $ syntax
Add Comment