8
Herry
7y

Why do people hate jQuery so much? 30KB is basically nothing in times of modern bandwidth and for me CSS selectors are mich more readable than the Vanilla JS functions.
Im not judging and would be happy if someone explains it to me or shows better alternatives.

Comments
  • 5
    Because it creates spaghetti, crap code, it is old, deprecated (yes, I know it is still being developed, but that does not change fact, it is deprecated). Sometimes slow, and ES6 makes it useless, because you already have many functions built in.
  • 3
    It's not about the size. It's just too old and doesn't work well with modern frameworks.

    Angular and jQuery together for example, usually lead to a huge fucktwaddle of code sphagetti. I've experienced it myself.

    jQuery was a godsend in a time we had no better option, but since we do, it's obsolete.
  • 2
    const $ = document.querySelectorAll;

    There you go. You now have the thing that most, if not all people use jquery for. And it only took 36 bytes!

    And now you can just consult the following site and be amazed at how simple Vanilla.JS can be 😺

    youmightnotneedjquery.com/
  • 0
    Ill check it out xD My ehole life was a lie appearently :o
Add Comment