Hello all,
I've been working on my site's UI lately. I've improved it majorly (more efficient, more simple, etc.).
However, I want to know if I should use jQuery, and if so, how much to use it, when to use it, etc.
I have installed jQuery, and it works.
Thank you.
8 replies to this topic
#1
Posted 26 March 2011 - 03:36 AM
|
|
|
#2
Posted 27 March 2011 - 06:20 PM
jQuery is meant to make JavaScript with ease. You should use it if it interests you. There are other JavaScript libraries out there like JS Ext and MooTools which can accomplish the same thing which is why I say that. I use it because I can write JS code much faster.
#3
Posted 28 March 2011 - 02:25 AM
So use jQuery whenever I would use JavaScript?
#4
Posted 28 March 2011 - 05:08 AM
Essentially you could. I'm not saying do it and completely forget about JavaScript (some people actually do this and forget jQuery is simply a library of JavaScript), but do it when it makes your life easier. But then again, 99% of the time I use jQuery, it is much faster than if I were to write plain old JavaScript.
#5
Posted 28 March 2011 - 03:42 PM
Okay then. However, since jQuery is essentially JavaScript, will this slow down load times?
#6
Posted 28 March 2011 - 04:06 PM
Hunter100 said:
Okay then. However, since jQuery is essentially JavaScript, will this slow down load times?
Yes, it takes time to load the jQuery file, extra overhead since your jQuery funciton calls other functions.
However, it does make your code a ton cleaner, you can write code faster, so in most cases the benefits out weigh the slower load times, especially if you are already using it.
#7
Posted 28 March 2011 - 04:07 PM
Well it depends what you write. I did hear though that jQuery will have less load times if you specify your selectors better. IE:
$('div#header') would load faster than $('#header') because it singles out elements by narrowing down its targets. But here's definite help for making jQuery faster: 10 Ways to Instantly Increase Your jQuery Performance | Nettuts+
#8
Posted 28 March 2011 - 08:29 PM
Thanks for the advice and that link.
But, do you think the end-users might grow tired of too much JavaScript (whether it is jQuery, Moo Tools, Prototype, etc.)?
All my other questions have been answered though, so thank you.
But, do you think the end-users might grow tired of too much JavaScript (whether it is jQuery, Moo Tools, Prototype, etc.)?
All my other questions have been answered though, so thank you.
#9
Posted 29 March 2011 - 10:02 AM
Maybe if you cram your pages with unnecessary effects, actions, etc. that do nothing for the user to accomplish their task (like adding annoying dialog boxes for the hell of it), then yeah. Otherwise, I find it really useful as these JS libraries can help me build pages that are dynamic, content-driven, etc. without moving from page to page so much.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top










