Hacker News new | ask | show | jobs
by masklinn 2689 days ago
> You can write a lot of that stuff in a dozen lines of JQuery with nicely refreshing content and ajax instead of throwing in large amounts of framework bloat.

OTOH jquery is much bigger than you'd expect, there isn't much of a difference between a minimized jquery and vue, or even react once you factored in gzip.

And while I've no experience doing so using vue, writing small dynamic react components embedded in larger static HTML pages is quite enjoyable.

1 comments

It's 2019, most of the stuff that jQuery used to handle is now included in the browser API. For instance, to have "AJAX", simply try window.fetch instead of $.get.
Then add a polyfill per api call to support anything but the most recent browsers, if you happen to want your site useable by people with old systems or who are at work.
...which you can selectively serve only to the old browsers :)
That sounds trivial.