I want to know that which method is good using native javascript or jquery to build a high quality site.Does jquery make the page load time longer?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, given that jQuery is just a bunch of JavaScript designed to make the coder’s life easier while totally ignoring the basic fundamentals of “less is more”, “KISS” and other similar principles, I’d say raw JavaScript is a hell of a lot faster than jQuery in terms of page loading times.
That said, it is of course entirely possible to write plain JavaScript that kills the browser.
Such as
while(some condition that is accidentally always true)(I am guilty of this one)So just “not using jQuery” won’t guarantee that your site works faster than one that uses jQuery. You still need to optimise the code you write, regardless of the tools you use.