Earlier quoted context omitted.
You still need some kind of application framework. Jquery is just a low level utility. But higher level you need to maintain architecture. Specially in spa's
You don't "need" an application framework. People have been building websites (even SPAs) before the 2010s and they didn't "need" these frameworks. Given what we know today, I'll grant you that in some cases people would want to use a framework, but it's hardly a necessity unless the context provides more specific requirements.
jQuery v4.0 Beta
281–290 of 404 posts
Re: jQuery v4.0 Beta
#282Earlier quoted context omitted.
Second to that: jQuery is awesome. Or more specifically: the idea that websites can be built with vanilla HTML, CSS, and _optional_ JS. jQuery embraces progressive enhancement and separation of concerns pattern, which is quite the opposite of how websites are built these days. Web development starts with 10+ React import statements for components, CSS, images, and whatnot. JavaScript is a must, not optional.
> JavaScript is a must, not optional. I build plenty of CSS only sites without any JS just fine. I avoid using it as much as I can and generally only need it for forms or galleries, occasionally some ajax stuff. But it's seldom required.
Re: jQuery v4.0 Beta
#283I remember jQuery from it's heyday when we used it as a replacement for Mootools. Since many people are going from React to HTMX, maybe we've made a full circle and we'll see web using just plain jQuery as well?
Re: jQuery v4.0 Beta
#284This throws me back to my junior days (2008~) where i had a heated discussion with my technical lead, to add jQuery to a project. His argument was that the size of minified library(40kb) would add too much overhead to the loading time of the page. He then, promptly spent a full week trying to code an ajax call and testing its support on different browsers and ultimately failed to make it work on Internet explorer 5.…
Re: jQuery v4.0 Beta
#285Re: jQuery v4.0 Beta
#286Earlier quoted context omitted.
There's a bunch of pretty convenient selectors that are not supported by document.querySelector(), such as :selected, :checked and a bunch of others (I forgot which exactly, but I've run in to it a few times). In general the DOM API offends pretty much every single of my sensibilities on how to design good APIs. I also have some gripes with the jQuery API, but it's a lot better. jQuery just reads and writes so much m…
`:visible` and `:hidden` are really cool
Re: jQuery v4.0 Beta
#287Earlier quoted context omitted.
yes and far easier to drop jq into a project. no need for build tools and all headache. (i know you do that with react but its not comparable features).
You don’t run your JS through babel or minification?
for a small project those efficiencies wont make a difference on my $20 godaddy hosting account.
i dont want some tool or process getting in my way. if i have a problem then i will look for a solution.
Re: jQuery v4.0 Beta
#288Earlier quoted context omitted.
I’d like to know the name of this alternative that’s as feature-rich and yet bullet-proof while still being open source
Django and Wagtail is one option. Do a little research and you'll find others.
Re: jQuery v4.0 Beta
#289I remember building web apps in the days before jQuery, it was a mess. The DOM APIs were full of quirks, and all the libraries that predated jQuery had their own issues. These days, we have better options for building complex web apps, including much-improved native APIs. I don't think I've started a new project using jQuery in 10 years. But for maintainin a lightweight website that just needs a little bit of interac…
Especially the events! Those were browser-specific nightmares
Re: jQuery v4.0 Beta
#290Earlier quoted context omitted.
> JavaScript is a must, not optional. I build plenty of CSS only sites without any JS just fine. I avoid using it as much as I can and generally only need it for forms or galleries, occasionally some ajax stuff. But it's seldom required.
Just want to say I appreciate you for doing that.
It just seems like good practice. I want my sites to be as fast, minimal, compatible and as usable as possible, while still looking and feeling modern.