1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How many jQuery scripts do I need?

Discussion in 'jQuery' started by GjB, Dec 22, 2016.

  1. #1
    Sorry if this seems easy:
    I'm trying to minimize my site and I realize I have these 2 scripts in the head of my html:
    <script src="jquery.js"></script>
    <script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>

    Do I need them both? If yes, or no, could you please explain why?

    Thanks
     
    GjB, Dec 22, 2016 IP
  2. Einheijar

    Einheijar Well-Known Member

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    165
    #2
    Check what does jquery.js contain, if it's just vanilla jquery without any customizations you won't need it. Probably some script required it and you just forgot about it.
     
    Einheijar, Dec 23, 2016 IP
  3. GjB

    GjB Member

    Messages:
    44
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    33
    #3
    Thanks. I was advised to keep the top script (and continue to host the jquery (minifed) on my site) and do away with the second script. (The jquery is the previous version 3.1.0, so I changed it to 3.1.1.)
    You're right, I had forgotten about it, or in fact pasted them both in error ages ago. I had just copied and pasted the HTML from a previous site when I set up the pages.
    I appreciate your time. Have a good Christmas or holiday.
     
    GjB, Dec 23, 2016 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #4
    NEED? zero. At least if you have anything resembling common sense.
     
    deathshadow, Mar 11, 2017 IP