Link to home
Start Free TrialLog in
Avatar of kdschool
kdschool

asked on

How to make a local copy of a jquery libarary.

The code is pointing to this libarary.
  <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>

how canmake this local so I can use it without worry of the site not being available.  

I need this exact version for the jquery menu I am using.
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kdschool
kdschool

ASKER

This still point to an external file I thought I could put that on my server and not point to thiers.
So if I put in a folder called _js then I would change this line of code from this to this?

 <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>

 <script src="_js/jquery-latest.min.js" type="text/javascript"></script>
>> This still point to an external file
I mentioned that in case you are not aware of Google's CDN.  The way they have their CDN setup, the jquery above will always use version 1.11.1.  However, if you prefer to have your own copy, just follow the steps I mentioned earlier.
Download jquery-latest.min.js and then upload it to your server then point to it like this:
<script src="jquery-latest.min.js" type="text/javascript"></script> 

Open in new window

That worked I just had to put it at the root of the directory not in the sub directory.