Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Mar 2011
    Posts
    164
    Thanks
    7
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,775
    Thanks
    55
    Thanked 519 Times in 516 Posts
    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

  • #3
    Regular Coder
    Join Date
    Mar 2011
    Posts
    164
    Thanks
    7
    Thanked 0 Times in 0 Posts
    thanks....

    Good tip -

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

  • #4
    New Coder
    Join Date
    Sep 2012
    Posts
    13
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Hey... thanks for this tip

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

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,486
    Thanks
    6
    Thanked 981 Times in 954 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •