SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2005
    Location
    uk colchester
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Noobie question linking to google CDN Jquery

    I have just found out that it's best to link to Google CDN as per this article

    http://encosia.com/3-reasons-why-you...query-for-you/

    However I am trying to use an image sliding script as seen on this template
    http://www.websitetemplatesonline.co.../redstorm.html

    This calls in 3 scripts which are

    Code:
    <script type="text/javascript" src="lib/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="lib/jquery.tools.js"></script>
    <script type="text/javascript" src="lib/jquery.custom.js"></script>
    Now I see I can replace the 1st line with
    Code:
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script>
    But what I am trying to work out is can the next 2 lines also be called from elsewhere this is my question that I cant find an exact answer.

    Many thanks

    Ian

  2. #2
    SitePoint Evangelist artcoder's Avatar
    Join Date
    Aug 2005
    Location
    Planet Earth
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For jQuery tools ...

    Code:
    <script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
    For jQuery custom, you might not have a cdn for. But try looking for it at http://cdnjs.com/

  3. #3
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    The "custom" JS file is likely jQueryUI. When you customize that package on jQuery's site and download it, the filename usually includes "custom".

    https://developers.google.com/speed/...uide#jquery-ui

    Also, here's everything that google's CDN hosts: https://developers.google.com/speed/libraries/devguide
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain


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
  •