CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript frameworks (http://www.codingforums.com/forumdisplay.php?f=62)
-   -   Important to update jquery? (http://www.codingforums.com/showthread.php?t=273308)

listerdl 09-17-2012 01:46 AM

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

xelawho 09-17-2012 01:55 AM

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

listerdl 09-17-2012 02:02 AM

thanks....

Good tip -

Hey does the .min.js work just as good? Why doesn't everyone use the minified version?

misteroram01 09-17-2012 07:12 AM

Hey... thanks for this tip

Actually, it is really great to keep with the latest version.

VIPStephan 09-17-2012 10:20 AM

Quote:

Originally Posted by listerdl (Post 1270491)
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.


All times are GMT +1. The time now is 05:11 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.