3 ms·
A fair amount of hate for jQuery is due to how it's used (read: misused) and not the tool itself. For example, dev adds jQuery to a project when 5 to 10 lines
by chiefalchemist 4y ago
A fair amount of hate for jQuery is due to how it's used (read: misused) and not the tool itself.
For example, dev adds jQuery to a project when 5 to 10 lines of vanilla JS would do.
- olliej 4y agoTypo? :)
- chiefalchemist 4y agoYes. Fixed. Thank you.
- brettermeier 4y agoI must admit that I use jQuery also for very few lines, when I set up a mockup or something and just want to add some quick interactions. It is so convenient to just write $(".thisClass").show(); for example. But I get it, if that page would be loaded by thousands of people each day, you may not want to make them all to load an extra jQuery file for what you could have written instead as a Script tag in a HTML file.