Live data from Hacker News

The Future of JQuery UI and JQuery Mobile

blog.jqueryui.com

51–60 of 97 posts

Re: The Future of JQuery UI and JQuery Mobile

#51
post #17

Seems 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 used JQuery Mobile to build http://letzcode.com/

Maybe it's time make it a real mobile app :)

Re: The Future of JQuery UI and JQuery Mobile

#52
post #33
post #17

Seems 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 saw jQuery mobile projects for sites with insanely large expected user base. For instance a gas comapny’s customer information site, and the goal was to have html that could be displayed on post wap phones or super old blackberries. It’s really less to do super fancy stuff, and more to have forms that don’t break on super exotic browsers we didn’t even know existed.

> on super exotic browsers we didn’t even know existed.

they do not work well with jQuery or even jQuery mobile. consider ANTGalio a browser that was used in a lot of embedded stuff could not work with anything above emcascript 3 and even than had some pretty wierd behavior. jquery did not work on it.

Re: The Future of JQuery UI and JQuery Mobile

#53
post #44

Earlier quoted context omitted.

Not in Edge though.

The page I linked has a compatibility chart that says Edge 16 has it (no idea if that's a planned release, haven't ever used Edge).

You can use Array.prototype.forEach.call(nodelist, fn), or Arrays.from(nodelist).forEach

Re: The Future of JQuery UI and JQuery Mobile

#54

jQuery 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…

Just read through that issue thread on github. That makes me almost cry! Here's an awesome project (whether it's dated or not), and then there are all these people trying to make valid, good contributions, but for some reason (however valid they are) they have to go through all these red-tapes.

I don't know where to stand. One side, maybe you need all these red-tapes so that you don't get in any trouble. But this makes me feel like things are not going to progress and people will eventually turn away.

Haven't we already seen too many examples like this? Things start small, they get popular, people jump in to use, then things get political and it dies out.

Re: The Future of JQuery UI and JQuery Mobile

#55

Earlier quoted context omitted.

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...

To make that work for all elements of that class, you could rewrite it as document.querySelectorAll('.myclass') .forEach(el => el.style.display = 'block') The jQuery is still shorter, but the vanilla js is definitely manageable.

  Array.from(document.querySelectorAll('.myclass'))
    .forEach(el => el.style.display = 'block')

Re: The Future of JQuery UI and JQuery Mobile

#56
post #42
post #17

Seems 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 have used jQuery UI for its "sortable" interaction. It did the job. I would use it again. Is there any alternative anyway?

Absolutely, lots of people are keen for jQuery UI features without the bloat of jQuery+jQuery UI.

For sortable, there's https://github.com/RubaXa/Sortable. It comes in at around ~6KB gzipped, compared to ~80kb for jQuery UI's JavaScript (not to mention CSS and jQuery itself).

Re: The Future of JQuery UI and JQuery Mobile

#57
post #17

Seems 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

I used it for a project when I was at university. It was appalling to use. Lots of the examples on the jQuery mobile website failed (e.g. weird redirections when closing modals, lots of odd flashing and jumping around).

A few years later I went back to check the examples and they had the same problem.

Re: The Future of JQuery UI and JQuery Mobile

#58
post #17

Seems 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

I built a complete mobile app using jQuery mobile and it was a total disaster as well. I had so many ugly hacks in place just to achieve what any decent SPA framework does out of the box nowadays. To this day I have no idea what the actual purpose of jQuery mobile was, it sucked for single page apps and felt more like a quick way to make HTML pages responsive. Which can of course be achieved with a bit of CSS or one of the many responsive CSS frameworks.

Thankfully the app never made it to production, for various non-technical reasons.

Re: The Future of JQuery UI and JQuery Mobile

#59

Earlier quoted context omitted.

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...

It's like a corollary to Greenspun's Tenth Rule [0], in that anytime I try to do something in vanilla JS, I just end up poorly re-inventing half of JQuery just to do it. [0] https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule

I ended up reinventing most of jQuery: https://umbrellajs.com/

But it was fun and I learned a lot, so there is that.

Re: The Future of JQuery UI and JQuery Mobile

#60

Earlier quoted context omitted.

To make that work for all elements of that class, you could rewrite it as document.querySelectorAll('.myclass') .forEach(el => el.style.display = 'block') The jQuery is still shorter, but the vanilla js is definitely manageable.

Array.from(document.querySelectorAll('.myclass')) .forEach(el => el.style.display = 'block')

Though ie11 doesn't have Array.from()
Post reply on HN