Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does jQuery by itself offer any value these days compared to plain Javascript though?

I was under the impression jQuery was for the IE5 days where not all browsers provided the same javascript APIs and doing an xmlhttprequest was more clunky than doing a fetch() call these days.

At least for my personal Jekyll based blog, I was able to replace 40-45 lines of jQuery with 50 lines of plain Javascript and was able to get rid of 33kb of jquery dependency.



jQuery is still great. Just take this site (which is ironically arguing the opposite viewpoint) https://youmightnotneedjquery.com/ and notice how all the "modern" (tech's vaguest and most meaningless adjective) code is 2-3x as verbose and complicated.

And 33kb, you can probably gain that by changing your jpeg compresion level from 80 to 79.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: