SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict revlimiter's Avatar
    Join Date
    Sep 2005
    Location
    British Columbia, Canada
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Auto-Updating jQuery... Wise Idea?

    Hi everyone,
    I am wondering what your thoughts are on using a script such as this one that Google hosts for auto-updated version of jQuery:
    http://ajax.googleapis.com/ajax/libs.../jquery.min.js

    Is it a good idea to use this? I noticed that doing a site scan on http://www.modern.ie/en-us it tells me to update jQuery for older browsers, but doing so is kind of redundant and time consuming, especially if I have over ten websites that I wish to update every time a new version comes out.

    What are your thoughts on using Google API for sourcing an up to date version of jQuery?

    Thanks,
    "To make an apple pie from scratch,
    you must first create the universe.
    -Carl Sagan

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,892
    Mentioned
    211 Post(s)
    Tagged
    12 Thread(s)
    I don't do it, as it is prone to break things as the library evolves and things get deprecated.

    As an example: jQuery's toggle event function has been removed as part of version 1.9.

    So in 1.8.x this worked:

    Code JavaScript:
    $('#example').toggle(function() {
        do stuff
    }, function() {
        do stuff
    });

    in 1.9.x it doesn't.

    For me, this is a good reason to specify a version and stick to it.

    Also, the jump from 1.9 to 2.0 will be quite extreme as jQuery is dropping support for IE6, 7 and 8 (yippee).
    http://arstechnica.com/information-t...-ie-6-7-and-8/


Bookmarks

Posting Permissions

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