Hacker News new | ask | show | jobs
by anonymous344 1410 days ago
Yes but how much the js-code parts grew because longer scripts length in vanilla javascript? And how much added for another ajax library? I don't see that using vanilla js instead of jquery gives enough advantage compared to that i have a much more pain writing that frontend code with vanilla. And specially replacing ajax or get (fetching json) with error handling (no server at all, server error, data not found -cases) is just awful with axios for example.
1 comments

You don't need 32kb of code to use Fetch with error handling — especially since modern JS is not only faster but more concise than the style you would have written with jQuery in its heyday. I've gotten tons of use out of jQuery but it's been 15 years and browsers have gotten a lot better.
Especially when you’re writing progressively enhanced JS and the site falls back to something sane if it’s not supported.