Related: This is a nice write-up of how to write reactive jQuery. It's presented as an alternative to jQuery spaghetti code, in the context of being in a legacy codebase where you might not have access to newer frameworks. https://css-tricks.com/reactive-jquery-for-spaghetti-fied-le...
jQuery 4
21–30 of 313 posts
Re: jQuery 4
#22Re: jQuery 4
#23Related: This is a nice write-up of how to write reactive jQuery. It's presented as an alternative to jQuery spaghetti code, in the context of being in a legacy codebase where you might not have access to newer frameworks. https://css-tricks.com/reactive-jquery-for-spaghetti-fied-le...
I used this approach before and it indeed works better than the 2010-style jQuery mess. A good fit for userscripts too, where the problem you attempt to solve is fairly limited and having dependencies, especially with a build steps, is a pain. Note that you don't need jQuery for this at all, unless you are somehow stuck with ancient browser support as a requirement - querySelector, addEventListener, innerHtml - the b…
Re: jQuery 4
#24Nice to see it still around and updated. The sad part is I guess this means React will be around in 2060.
Re: jQuery 4
#25Re: jQuery 4
#26The first time I truly enjoyed web development was when I got the hang of jQuery. Made everything so much simple and usable!
Re: jQuery 4
#27Re: jQuery 4
#28Re: jQuery 4
#29Incredible it's still being maintained.
Re: jQuery 4
#30jQuery is v4 now, but a lot of sites esp. wordpress still have 1.11 or 1.12 and only uses them to either doing modals(popover), show/hide(display), or ajax(fetch).