When should I use jQuery of pure JavaScript? [duplicate]
This question already has an answer here:
Advantages of using pure JavaScript over JQuery 7 answers
I'm currently learning jQuery but have come across a question I'd like to ask.
When is it appropriate to use jQuery? Using only 1 line for a piece of JavaScript that would normally take 2 is great and all but is it worth it? Would the user's experience be better if I were just using pure JavaScript?
By this I mean, is it worth the load time? I've done a lot of reading about compatibility and I understand it works down to IE6 (!) so I have no problems with that. I suppose the main question it comes down to speed. I do know that using the Google hosted jQuery library will allow for fast download etc.
I just need somebody to clarify that it is worth using jQuery, even for smaller projects. Also, are there are any other factors other than speed/compatibility that I should be considering?
Thanks!
This question already has an answer here:
Advantages of using pure JavaScript over JQuery 7 answers
I'm currently learning jQuery but have come across a question I'd like to ask.
When is it appropriate to use jQuery? Using only 1 line for a piece of JavaScript that would normally take 2 is great and all but is it worth it? Would the user's experience be better if I were just using pure JavaScript?
By this I mean, is it worth the load time? I've done a lot of reading about compatibility and I understand it works down to IE6 (!) so I have no problems with that. I suppose the main question it comes down to speed. I do know that using the Google hosted jQuery library will allow for fast download etc.
I just need somebody to clarify that it is worth using jQuery, even for smaller projects. Also, are there are any other factors other than speed/compatibility that I should be considering?
Thanks!
No comments:
Post a Comment