+ 5
jQuery or java script? thats the question! do you have any idea about this?
7 odpowiedzi
+ 2
jQuery is not mainly bad for its size it only has 30kb minified, if I combine the javascript code of some dependencies like vue, vue router, bootstrap-vue, agios unminified it will have a ~ size of 1.6 MB.
I can agree with many issues that people may have with jQuery( like the fact that it manipulates the DOM directly, or that many of its past functionality is now included in the core of javascript) but the size of the library isn't the main issue.
Plain javascript, libraries or frameworks, any of them can be the perfect solution for specific scenarios, there isn't a best solution for every scenario, all solutions have pros and cons in this case.
+ 6
Vanilla JavaScript
jQuery let you code quickly, but its large library results in long loading time, and is bad for user experience
+ 6
just learn Js and later jquery
+ 5
I think JQuery (basically a JS library) can only do a subset of what plain JS can do, but it has a far more concise syntax.
+ 2
According to my point of view Jquery is the better than javascript for dynamic web pages also it supports cross platform! You can write jquery with a simple syntax with the less lines of code when compared to javascript.. Its awesome.. JavaScript is a language and JQuery is a library built using JavaScript.
http://pythonandmltrainingcourses.com/best-summer-training-in-noida/
0
JQuery is a JavaScript library. You can achieve the same things with either from the client side. JQuery is easier to code with, but with vanilla JS, you will get the best performance.
0
Jquery and javascript more like.
JS for: data types, Abstract data types, functions, math, high order functions, ajax
JQ for: event handling, dom traversal, html manipulation, css manipulation
JQ by far has a simpler syntax. e.g.
JS: document.getElementById(‘el’).style.background=“green”
would be
JQ: $(‘#el’).css(“background”, “green”)