-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Much of jQuery is now available natively in modern browsers. Complete the proof without using any framework at all.
Of course anybody can write stuff in plain Javascript. I've done AJAX in plain Javascript before it was called AJAX. And MODX would be a lot faster and lighter if it were written in C .gci scripts. Or how about we just forget the whole mess and write a custom website + webserver in assembly language? There's a reason why the Javascript frameworks are so popular. And there's a reason why JQuery is so popular. jQuery is all about the $('CSS Selector')... along with chained .methods() To do the standard DOM Querying with plain JS can take as much as 50 lines of code with many flow controls. And JQuery stops circular references when attaching events and data. That's very hard to manually manage. Not to mention things like cross-browser compatibility. You'll end up with code to do exactly what JQuery does in far too many places.