Got to agree, I primarily use vanilla JS and have no issues with DOM manipulation. If your HTML is structured well then querySelectorAll, closest and a simple forEach helper function are your best friends.
jQuery was a solution the cross-browser problem of the '00s.
jQuery is still a solution to the cross-browser problem of the '10s.
I do agree that modern browser got better, but modern browser companies did not, especially Apple. Still 14% of Apple users have an outdated Safari, and we can't blame them not wanting to buy new iPads or iPhones, but we can blame Apple not maintaining Safari.
Edit: And that's only for the obvious part that we shifted from IE is outdated to Safari is outdated. But that does not change the fact that, while diluted over time, this issue is still abroad all browsers. Some features are still a nightmare to implement for cross-browser comp, and if I've the choice to build an over-complicated solution that will generated tons of polyfills over having one lib that ensure me cross comp, I'm still choosing the latest.
but slows down the actual behavior in the browser.
Are we really complaining about web page performance of JQuery in a world of dynamic "Web Application Frameworks" that are about 10x slower than normal web pages?
See for example: New Reddit and my favorite whipping boy of terrible design, PayPal.
I curse the day client-side Web Application Frameworks became trendy. JQuery is a paradise of performance compared to that crap.
The more idiot-proof you make code, the better people will write it. Especially a framework like Javascript where competency is a mile wide and an inch deep.
I've never seen someone who knew React but not JavaScript. I'm not even sure how you could know React but not JavaScript. I can understand someone not knowing the document.(whatever) functions, but not the language itself. React is just a better way to manage the way the dom than element manipulation.
I was speaking broadly, but I think you’re right - React is a toolkit, which requires you to know more about JavaScript, versus Angular which does a lot of heavy lifting for you.
But it has been a while since I have delved into the world of tutorials, plugins and extensions, so it’s hard to say where it lies at the moment (from my perspective).
Time for me to dive back in and see what they’re cranking out nowadays.
For many coders, their projects are ephemeral. The approach to coding is drastically different between a coder who will work on a site for 2+ years, vs a coder that will work on a site for 2+ months. One is most interested in performance and maintainability, the other in deadlines. Frameworks make building a modern site VERY quick work; people forget shorter dev time is also a bonus.
53
u/Chrispy_Bites Jul 25 '18
Serious question: why is this a huge deal? I make an effort to write as much POJS as possible, but jQuery does speed up a lot of the DOM manipulation.