Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-17-2012, 01:46 AM   PM User | #1
listerdl
Regular Coder

 
Join Date: Mar 2011
Posts: 157
Thanks: 7
Thanked 0 Times in 0 Posts
listerdl is an unknown quantity at this point
Important to update jquery?

The answer is probably yes but is it important to update your jquery?

I mean, I am sure it is backwards compatible right?

Just wondering - perhaps someone will chime in saying that if it aint broke don't fix it but I was wondering....

I am on 1.7.1 and I notice that the current is 1.8.1
listerdl is offline   Reply With Quote
Old 09-17-2012, 01:55 AM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 453 Times in 451 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
you have to keep an eye on version changes - for example, as the docs note, as of jQuery 1.3, .trigger()ed events bubble up the DOM tree, which is a fairly major change.

if you want, you can make sure that you always have the latest version just by calling
Code:
<script src="http://code.jquery.com/jquery-latest.js"></script>
or
Code:
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
if that's what you're into
xelawho is offline   Reply With Quote
Old 09-17-2012, 02:02 AM   PM User | #3
listerdl
Regular Coder

 
Join Date: Mar 2011
Posts: 157
Thanks: 7
Thanked 0 Times in 0 Posts
listerdl is an unknown quantity at this point
thanks....

Good tip -

Hey does the .min.js work just as good? Why doesn't everyone use the minified version?
listerdl is offline   Reply With Quote
Old 09-17-2012, 07:12 AM   PM User | #4
misteroram01
New Coder

 
Join Date: Sep 2012
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
misteroram01 is an unknown quantity at this point
Hey... thanks for this tip

Actually, it is really great to keep with the latest version.
misteroram01 is offline   Reply With Quote
Old 09-17-2012, 10:20 AM   PM User | #5
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,587
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Quote:
Originally Posted by listerdl View Post
thanks....

Good tip -

Hey does the .min.js work just as good? Why doesn't everyone use the minified version?
Everyone is using the minified version – at least everyone that knows what they are doing, and at least for production sites.

Now, if you know that updating jQuery won’t break anything then you can safely go ahead and do it. After all, if you decide to add new features to your site you can rely on the fact that you can use the latest features of jQuery. However, if your site won’t change in the near future you can as well leave the version you have right now and update it with a major redesign of the site.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:11 AM.


Advertisement
Log in to turn off these ads.