Earlier quoted context omitted.
1) it doesnt ignore it 2) anyone claiming not to have a single `style=""` attribute (which is almost as specific and 1000x less maintainable) in their code is lying
I will swear on my life that I haven't used a style attribute in the last five years. Since I started using BEM for namespacing I have had a very easy time keeping my CSS clean and maintainable. I won't deny others their opinions, though.
Bootstrap 5 will remove jQuery as a dependency
211–220 of 333 posts
Re: Bootstrap 5 will remove jQuery as a dependency
#212This is funny. I was thinking that Bootstrap should be suffering the same fate as jquery. That is, it’s relevance should be decreasing as web technology catches on. I see no reason for using a third party layout system now that CSS has `display: flex;` and `display: grid;`. As for modals and menus, HTML has ` ` and ` `. And for reusable components, we have custom elements, that you can either implement your self (not…
This sounds like the frontend equivalent of, "Docker is irrelevant because the kernel already supports cgroups and namespaces".
Re: Bootstrap 5 will remove jQuery as a dependency
#213People who say jQuery is slow, never used YUI in its heyday. That abomination deserves nothing but a shallow grave.
Re: Bootstrap 5 will remove jQuery as a dependency
#214Earlier quoted context omitted.
When the wheel is prone to damage from small bumps, and can't handle off-road, a new stronger reliable wheel that handles all terrain is needed. That's what Jquery offers.
And when the wheel is so bloated the car can barely make it down the road without needing to refill the fuel tank a new more lightweight reliable wheel that can handle modern terrain is needed. That is why people are moving away from Jquery.
Re: Bootstrap 5 will remove jQuery as a dependency
#215Then there's always: https://github.com/thednp/bootstrap.native/
(which I've not used), but appears to remove jQuery as a dependency
Re: Bootstrap 5 will remove jQuery as a dependency
#216Earlier quoted context omitted.
jQuery _did_ lots of useful stuff. It's unmaintained, has no interest/support (look at their github), doesn't adapt to modern features, is 'slow' compared to other frameworks that now use the Shadow Dom, and can be replaced with features that are native to JS - what's there not to like about that? One less dependency, network request and more efficient code is always worth the effort. Oh, and since the new code is va…
> One less dependency, network request and more efficient code is always worth the effort. Except that 90% of sites that use BS5 will continue to use JQ for other things anyway so, in reality, you won't have less code, fewer requests, etc. Personally I've felt for a while that JQ's day in the sun is over and that developers should really think about whether they need it or not. Maybe really getting rid of it starts w…
Re: Bootstrap 5 will remove jQuery as a dependency
#217Earlier quoted context omitted.
jQuery _did_ lots of useful stuff. It's unmaintained, has no interest/support (look at their github), doesn't adapt to modern features, is 'slow' compared to other frameworks that now use the Shadow Dom, and can be replaced with features that are native to JS - what's there not to like about that? One less dependency, network request and more efficient code is always worth the effort. Oh, and since the new code is va…
jQuery still does a lot of useful stuff. The best advertisement for jQuery, ironically, is this site: http://youmightnotneedjquery.com/ Look at how simple things are in the left column, and how much more code is needed in the right column. jQuery has many convenience features such as chaining, for example: item.addClass('selected').siblings().removeClass('selected'); and you don't have to check for nulls after each s…
This is misleading. Sure, that immediate code is cleaner in the left column. However, to do that, you have to have the entire JQuery library loaded as well. Sure, it's hidden, but the library looks like the code on the right column.
I'm not knocking JQuery, as I use it a lot.
Re: Bootstrap 5 will remove jQuery as a dependency
#218Earlier quoted context omitted.
jQuery still does a lot of useful stuff. The best advertisement for jQuery, ironically, is this site: http://youmightnotneedjquery.com/ Look at how simple things are in the left column, and how much more code is needed in the right column. jQuery has many convenience features such as chaining, for example: item.addClass('selected').siblings().removeClass('selected'); and you don't have to check for nulls after each s…
> Look at how simple things are in the left column, and how much more code is needed in the right column. This is misleading. Sure, that immediate code is cleaner in the left column. However, to do that, you have to have the entire JQuery library loaded as well. Sure, it's hidden, but the library looks like the code on the right column. I'm not knocking JQuery, as I use it a lot.
But you didn't have to write that code or debug it.
Re: Bootstrap 5 will remove jQuery as a dependency
#219Earlier quoted context omitted.
Safari shards their cache by first party domain, so you don't get that caching benefit there.
Didn't know that. Looks like Safari is continuing it's devolution into becoming the next IE.
Re: Bootstrap 5 will remove jQuery as a dependency
#220Earlier quoted context omitted.
If you ever need a new job, basically recruiters will laugh at you for not using React / Angular.
There's a whole tangent about resume-oriented development here.
Thankfully there are still places that will see past that. Still, the idea of "keeping up" does need to factor in, and the experience could serve as a wake up call to where the industry is headed.