Live data from Hacker News

Show HN: Umbrella JS, a 2.5kb jQuery alternative

umbrellajs.com

61–70 of 79 posts

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#61
post #48

The fake scrollbar on the documentation page is infuriatingly nonfunctional.

Uh? There is definitely no purposefully fake scrollbar, could you please share a screenshot and/or the device and browser you are using please? Ideally in Github as an issue: https://github.com/franciscop/umbrella/issues/new , but here is fine as well.

I believe hughes means: "when you click on an entry of the documentation, e.g. '.wrap' in the "Contents" you see a scrolling animation instead of just the entry you'd like to read."

So not "scrollbar" but "scrolling" as the result of the click, on the documentation page:

https://umbrellajs.com/documentation

I'm one of those who have the problem with the animations in the UIs too. Believe or not some people get effectively a real sickness feeling just by looking at some specific movements, in my case that page manages to achieve that.

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#62
post #7

I don't want to be "that guy", but haven't most people moved on to something like Vue instead of manipulating the DOM directly? Every developer I've worked with learned the basics of Vue quickly (less than a day) and marveled at how great it was compared to manipulating the DOM through jQuery (or something similar like Umbrella JS). But sure, there are edge cases where jQuery and similar libs still serve a purpose.

Vue and React make sense for large SPA-style applications, but I often find myself wanting to drop a few lines of JavaScript onto a page to implement something simple without pulling in a massive framework dependency that requires a webpack compile step.

Vue is VERY much an easy drop in for small things..I've totally started replacing it wherever I'd otherwise have used jquery... and I can't say I'm sorry I have. But all my projects use laravel on backend, and laravel has webpack/vue baked in so there's really nothing I need to configure for it to work, too much..a little tweaking in the app.js file..that's all.

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#63

Is anyone actually still using jQuery in a new project? I can’t think of a single good reason to do so.

From time to time, I need to make small interaction JS, which using React or Vue will be super overkill. Instead of using vanilla JS, I just use jQuery.

The biggest issue is that "small JS interaction" end up in an app. In that case, I will re-write in React.

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#64

Earlier quoted context omitted.

jQuery is 84 KB minimized, while Vue is 85 KB. Not much of a difference (although, granted, Umbrella JS is notably smaller). You don't necessarily need Webpack for Vue, you can just include Vue in a script tag and write your code.

But it’s also about abstraction overhead. You wouldn’t bring in Vue to add a Select All button that checks a bunch of checkboxes. You wouldn’t use jQuery/Umbrella for that either, but there might then exist a middleground where you would. e.g. any time you’re adding JS to an existing page but don’t want a whole component abstraction.

You might use VUE for that if you need it to work across pages/tabs and use a state/store like vuex to maintain the state of the checkboxes....or the react equivs...I mean you can use localStorage..but I prefer vuex.

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#65
post #34

How does it fare when it comes to browser compatibility? IIRC, one of the main selling point of jQuery is compatibility with browsers like IE6.

Sidenote, everything and every web site should aggressively drop support for ie6.

Why? If your website was IE6-compatible I'd salute you. Drpping support for legacy systems is something that's done too carelessly these days.

PS: I admit that it's hard to support IE6 when it's no longer supperted by MS itself.

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#67
post #34

How does it fare when it comes to browser compatibility? IIRC, one of the main selling point of jQuery is compatibility with browsers like IE6.

jQuery doesn't claim compatibility with IE6, they dropped it on jQuery 2.0 to IE8+: https://jquery.com/browser-support/ Umbrella JS supports Internet Explorer 11+, with some of the known bugs and wont-fix here: https://github.com/franciscop/umbrella#support-ie11 There is a polyfill to help here: https://github.com/franciscop/umbrella/blob/master/polyfill....

Thanks for those links. Also the latest jQuery now only supports Internet Explorer: 9+

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#68
post #7

I don't want to be "that guy", but haven't most people moved on to something like Vue instead of manipulating the DOM directly? Every developer I've worked with learned the basics of Vue quickly (less than a day) and marveled at how great it was compared to manipulating the DOM through jQuery (or something similar like Umbrella JS). But sure, there are edge cases where jQuery and similar libs still serve a purpose.

Vue and React make sense for large SPA-style applications, but I often find myself wanting to drop a few lines of JavaScript onto a page to implement something simple without pulling in a massive framework dependency that requires a webpack compile step.

Neither Vue nor React are really frameworks, and both can be used with a script tag without a compile step.

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#69
post #65

Earlier quoted context omitted.

Sidenote, everything and every web site should aggressively drop support for ie6.

Why? If your website was IE6-compatible I'd salute you. Drpping support for legacy systems is something that's done too carelessly these days. PS: I admit that it's hard to support IE6 when it's no longer supperted by MS itself.

Ie6 was is a piece of shit and a security issue. it needs to go away. I would go so far as saying websites should actively block that browser. I don't care about some legacy compatible bullshit. Ie6 was a scourge on the internet. If some corporation doesn't want to upgrade, that's their problem.

Re: Show HN: Umbrella JS, a 2.5kb jQuery alternative

#70

Is anyone actually still using jQuery in a new project? I can’t think of a single good reason to do so.

jQuery is a library of shortcuts. Everything you can do using jQuery you can do without jQuery, but that's like saying everything you can do in Excel you can do with just a Calculator app. Yes, it is possible, but why would you want to? When you do things like drag & drop and interactive resize you have to query DOM to get position and sizes, and perform hit detection, and you have to manipulate DOM directly. jQuery…

I maintain a number of widgets with jQuery for an edtech app with drag and drop, works on mobile and desktop, etc.

I'm starting to rewrite those to Vue and I've found the main limitation is not the DOM access (since you can use refs) but the model logic. In Vue all data is made of primitives or dumb objects, you can't really use classes for reactive data.

Post reply on HN