Earlier quoted context omitted.
Unfortunately, querySelectorAll returns a NodeList, not an Array. So you cannot use forEach() on it.
NodeList also implements forEach: https://developer.mozilla.org/en-US/docs/Web/API/NodeList/fo...
The Future of JQuery UI and JQuery Mobile
41–50 of 97 posts
Re: The Future of JQuery UI and JQuery Mobile
#42Seems like most of the comments on here pertain to the relevance of jQuery, rather than jQuery UI and jQuery Mobile. Sure most sites still use jQuery, but do very many use jQuery UI anymore? jQuery Mobile? I've never seen a project use jQuery Mobile.
Re: The Future of JQuery UI and JQuery Mobile
#43jQuery is still quite relevant and helpful. Despite the hype with newer libraries, jQuery is used on 73% of _all_ websites. https://w3techs.com/technologies/overview/javascript_library... I often tell myself, ok, I'm going to just use vanilla JS for this one, but compared to jQuery, it's way too verbose. Try doing $('.my-elements').show() in vanilla js. The problem is the jQuery foundation has become too bureaucratic…
whenever i feel the need for jquery these days, i typically reach for the much smaller, faster, ie11+ https://github.com/franciscop/umbrella
the parts of it i want are very simple though. i can (and have) written my own replacements, but I don't want to throw my own one-off replacement into the projects I use, so having some kind of community library is much better.
Re: The Future of JQuery UI and JQuery Mobile
#44Re: The Future of JQuery UI and JQuery Mobile
#45Seems like most of the comments on here pertain to the relevance of jQuery, rather than jQuery UI and jQuery Mobile. Sure most sites still use jQuery, but do very many use jQuery UI anymore? jQuery Mobile? I've never seen a project use jQuery Mobile.
I tried to use jQuery Mobile for a project once many years ago. It was a disaster, I ended up rewriting the entire thing
Re: The Future of JQuery UI and JQuery Mobile
#46Re: The Future of JQuery UI and JQuery Mobile
#47People in the comment threads seem to be confusing jQuery UI with jQuery. jQuery UI is collection of interactions, effects, and widgets built on the more ubiquitous jQuery library.
Re: The Future of JQuery UI and JQuery Mobile
#48jQuery is still quite relevant and helpful. Despite the hype with newer libraries, jQuery is used on 73% of _all_ websites. https://w3techs.com/technologies/overview/javascript_library... I often tell myself, ok, I'm going to just use vanilla JS for this one, but compared to jQuery, it's way too verbose. Try doing $('.my-elements').show() in vanilla js. The problem is the jQuery foundation has become too bureaucratic…
That's actually a good example. My gut feeling was simply to write the following. document.getElementsByClassName("my-class")[0].style.display = 'block'; The PlainJS site mentions that it's not quite that simple and suggests writing your own show() and hide() functions if you're avoiding jQuery. https://plainjs.com/javascript/effects/hide-or-show-an-eleme...
Missing:
Re: The Future of JQuery UI and JQuery Mobile
#49But when I opened the blog post on my iPhone and got only a small column, around the quarter of the screen, with content, I thought about how ironic it was, regarding the jquery mobile topic.
Re: The Future of JQuery UI and JQuery Mobile
#50And there was more optimism toward the concept of creating a widget toolkit and a webview mobile app. And while to an extent - we embrace that now in some form - it didn't work so well the first go around [1]. Media queries becoming a normal practice and CSS frameworks made jQuery Mobile feel clunky. Heavy duty mobile apps went native - and I can't know where they are now.
For jQuery UI, over time, the theming got a bit old. And stuff like "Buttons" (https://jqueryui.com/button/), you can already get via CSS. Most CSS frameworks, for that matter, do a lot of the widgets with far less JS, if any at all.
I'll miss them. They were a stepping stone in getting us to where we are now.
[1] https://techcrunch.com/2012/09/11/mark-zuckerberg-our-bigges...