Earlier quoted context omitted.
One thing that doesn't help jquery's case is that it and its plugin ecosystem isn't modular, making it impossible to trim the code size below the minified size via dead code elimination or even es6 partial imports. It would be nice to see more fluent DOM apis like jquery, but having 1st class support for es6 modules so you can import only the functionality you need in your final bundle
ZeptoJS has a modular build tool, allowing you to select only the desired modules https://zeptojs.com/
jQuery 3.6.0
251–260 of 292 posts
Re: jQuery 3.6.0
#252Earlier quoted context omitted.
I remember the first time I used VueJS after being a long time JQuery developer. It was incredible how much power VueJS and similar frameworks put in your hand using such simple concepts. Not having to add event listeners to everything and manually re triggering things is revolutionary. I was building dynamic UIs with ease that would have been massive and bug prone jobs in jquery.
do you use the full spa framework, or just use vuejs like jquery(use script to include it in each page)? whenever you have to do vuejs full SPA framework it comes with quite some concepts which takes (a lot) time to digest and stay up to date.
I was getting nowhere with jQuery. My final solution in vue was tiny compared to just setting up all the event listeners on the first try.
Re: jQuery 3.6.0
#253Earlier quoted context omitted.
I never understood why people say “We’ve solved your jQuery problem” by introducing getElementsByClassName() or even querySelector(). When I come back to my older app, $(“.my-class”) is still much nicer. jQuery gets out of the way, the class gets syntax-highlighted, and .focus() can’t create an NPE.
I know it doesn't replace jQuery, but this is fairly straightforward: $ = document.querySelector.bind(document) $$ = document.querySelectorAll.bind(document)
Re: jQuery 3.6.0
#254Earlier quoted context omitted.
>Do people still use jQuery? Oh yes. Everyday. Still love it. >…Javascript document api via document.querySelector, and document.querySelectorAll The jQuery API is still (and probably aways will be) far superior to the native DOM (terser, composable, more expressive, etc). >…smaller footprint libraries like lodash jQuery is ≈30k gziped and most likely already cached from CDN. >…has fallen out of favor of more compreh…
> IMO, React doesn't bring much to the table in this regard while adding a lot of complexity and heft. Strongly disagree with this. In any complex web application with a lot of components, specially ones where a lot of fixed components can live for a while, React is definitely a massive improvement over vanilla JS or something like Backbone which allows wild west. Imagine state coming from sockets, rest APIs etc wit…
Re: jQuery 3.6.0
#255Re: jQuery 3.6.0
#256Do people still use jQuery? I thought the biggest advantage of this library back in the day was css selector access of DOM nodes (back when we only had getElementById, getElementsByClassName, and getElementsByTagName). This has been rolled into the Javascript document api via document.querySelector, and document.querySelectorAll. Also there are browser compatibility issues that jQuery solved but a lot of these are so…
>Do people still use jQuery? Oh yes. Everyday. Still love it. >…Javascript document api via document.querySelector, and document.querySelectorAll The jQuery API is still (and probably aways will be) far superior to the native DOM (terser, composable, more expressive, etc). >…smaller footprint libraries like lodash jQuery is ≈30k gziped and most likely already cached from CDN. >…has fallen out of favor of more compreh…
Also as others have mentioned caches are individually isolated for each domain now to prevent tracking/data leaks.
Re: jQuery 3.6.0
#257JQuery and reading Resig's book and viewing the source code are responsible for lifting me from horrible dev to below average dev:-) I learned to extend the library and understood to create some minimal libraries for myself. It can be very useful to this day and is almost a ballerina when comparing the bloat of other frameworks or library stacks. You never know maybe the come up with something better than react.
> reading Resig's book I hope you mean the JS ninja one because I just bought it week. Do you remember a particularly impactful section?
However, secrets of a js ninja is very good as well, touches newer things like generators and es6, es7 features.
Re: jQuery 3.6.0
#258Earlier quoted context omitted.
> jQuery is ≈30k gziped and most likely already cached from CDN. This part isn't so true in reality anymore, due to revised browser caching systems[1]. Doesn't mean you shouldn't use jQuery, just that part of the benefits of a centralized CDN are no longer a factor and it's a lot more sensible to self-host. 1: https://www.stefanjudis.com/notes/say-goodbye-to-resource-ca...
considering the size of frameworks like react, it's basically a "nothing" download. I've seen people spend more bandwidth on rounded corners.
Re: jQuery 3.6.0
#259Are CSS Frameworks like Bootstrap still using jquery? Otherwise I don't see the use case of it now that we have so many JS frameworks plus Javascript as a language has changed so much.
Re: jQuery 3.6.0
#260Earlier quoted context omitted.
From your FAQ > No. Prices will never increase. Unlike other companies, we will never shutdown our service either. How can you guarantee this?
There are only two ways I think this can work. Their price completely covers every user signed up at any scale. If they lose all but 1 customer, that customer can keep the lights with just their subscription. The other is that company has such a large warchest it'd be impossible to run out of money.