DEV Community

[Comment from a deleted post]
Collapse
 
matthewbdaly profile image
Matthew Daly

There are better options these days for that, though.

Alpine.js gives you a Vue-like experience in terms of enabling a more declarative API for manipulating the DOM. But it doesn't require any sort of build chain, and has a footprint a fraction the size of jQuery's, so you can just load it from a CDN and start working. It doesn't handle things like AJAX requests, but then that's often a non-issue because fetch() is a strong native option these days, or you can use Axios, and the production build will still be smaller than with jQuery.