[dead]
Re:Bootstrap 5 will remove jQuery as a dependency
by exodust on Tuesday February 12, 2019 @08:23PM
(#19149511)
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.
Re:Bootstrap 5 will remove jQuery as a dependency
by capsulecorp on Tuesday February 12, 2019 @08:51PM
(#19149645)
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
by exodust on Tuesday February 12, 2019 @10:13PM
(#19150044)
I would not call Jquery bloated, relative to what is typically found on a website. Some of us still like using it, as the syntax is convenient and functionality reliable. There's an elegance and readability about it that appeals to me more than vanilla JS.
[dead]
Re:Bootstrap 5 will remove jQuery as a dependency
by komali2 on Wednesday February 13, 2019 @02:10AM
(#19151058)
That's a pretty obnoxious and unfounded opinion.
[dead]
Re:Bootstrap 5 will remove jQuery as a dependency
by exodust on Thursday February 14, 2019 @08:24AM
(#19161640)
I think table based layouts will make a comeback. I'm sure you agree, they make good containers for flexbox items. It's a Table, with data inside, so I can put whatever I like in a table, including functioning as layout. Can still be an accessible page, the table just replaces divs for structure, it's role clearly stated.
Re:Bootstrap 5 will remove jQuery as a dependency
by msla on Wednesday February 13, 2019 @04:06AM
(#19151588)
Homophobia? Really? 'jqueery' isn't a typo.
[dead]
Re:Bootstrap 5 will remove jQuery as a dependency
by msla on Friday February 15, 2019 @12:00PM
(#19172504)
This does not contribute to discussion.
Re:Bootstrap 5 will remove jQuery as a dependency
by pupdogg on Tuesday February 12, 2019 @11:16PM
(#19150361)
I am going to root for bloated jQuery to save my life!
$('.tpm_sensors').forEach(function(sensor) { if (sensor.pressure < threshold) fixBeforeIDie(); });
vs:
var tpm_sensors = document.getElementsByClassName('tpm_sensors'); for (var i = 0, len = tpm_sensors.length; i < len; i++) { var sensor = tpm_sensors[i]; if (sensor.pressure < threshold) fixBeforeIDie(); }
Re:Bootstrap 5 will remove jQuery as a dependency
by efdee on Wednesday February 13, 2019 @04:33AM
(#19151705)
> TypeError: $(...).forEach is not a function
And so it starts. jQuery uses .each, not .forEach. So you fix that. But stuff still doesn't work.
Right, because jQuery's .each passes the index as first parameter and the element as second (or this).
jQuery trips me every single time.
Re:Bootstrap 5 will remove jQuery as a dependency
by LorenzA on Wednesday February 13, 2019 @03:00AM
(#19151280)
document.querySelectorAll('.tpm_sensors').forEach((sensor) => {if (sensor.pressure < threshold) { fixBeforeIDie(); }});
Re:Bootstrap 5 will remove jQuery as a dependency
by phponpcp on Wednesday February 13, 2019 @09:29AM
(#19153305)
Then this breaks in older browsers because forEach isn't a method on a NodeList. So you have to polyfill in features to do [...document.querySelectorAll('.tpm_sensors')].forEach(...);
Re:Bootstrap 5 will remove jQuery as a dependency
by ulucs on Wednesday February 13, 2019 @03:59AM
(#19151552)
and you usually define $ and $$ as querySelector and querySelectorAll at the beginning of the file if you don't like writing them all out, so they're exactly the same length
Re:Bootstrap 5 will remove jQuery as a dependency
by IgorPartola on Wednesday February 13, 2019 @07:49AM
(#19152615)
I remember the mess that came before jQuery. This is quite literally what we did back then, just with a custom made snippet of JS for finding by id and by class. It sucked. I mean to me Bootstrap is just a black box library, I don’t care how it works as long as it does. But this is going to suck for those working on its code.
Re:Bootstrap 5 will remove jQuery as a dependency
by capsulecorp on Wednesday February 13, 2019 @01:15AM
(#19150877)
No need to load a slow bloated library. Learn modern DOM methods. Reading does wonders, my opinion.