Calling JS files in site header

Discussion in 'JavaScript' started by fadetoblack22, Oct 26, 2011.

  1. #1
    I have the following in the head of my site. Do I need them all or does 1.6.1 include 1.2.6 code as well?

    <script src="/js/jquery-1.2.6.pack.js" type="text/javascript"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="js/tablesort/jquery-1.6.1.min.js"><\/script>')</script>

    Thanks.
     
    fadetoblack22, Oct 26, 2011 IP
  2. mfscripts

    mfscripts Banned

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    8
    Trophy Points:
    90
    Digital Goods:
    3
    #2
    You should be able to remove the top line.
     
    mfscripts, Oct 28, 2011 IP
  3. fadetoblack22

    fadetoblack22 Well-Known Member

    Messages:
    2,399
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Thank you :)
     
    fadetoblack22, Oct 30, 2011 IP
  4. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #4

    i think jquery-1.2.6.pack.js is different, it has some plugins that is not in the main jquery build..
     
    JohnnySchultz, Nov 3, 2011 IP