Click here to Skip to main content
15,904,023 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to jquery.I want to ask u ,if I want to use jquery in my web application,do I need to download library from https://jquery.com/download/ Which one uncompressed/Compressesed, development jQuery 1.12.2?What is CDN?How safe to use jquery from CDN like this?

<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
Is it default CDN : http://code.jquery.com?

What I have tried:

I copied one small program from net and pasted in my application.That uses CDN..
Posted
Updated 21-Mar-16 21:29pm

CDNs are safe, but it is good practice to have your local copy for several reasons. CDN is abbreviation for Content Distribution Network. It is high-availability server providing your site with needed files.

Local copy is better because:
- if CDN is down for any reason, your site is down too
- locally, you can have both minified and development versions - and change both if you have to
- you can have CDN and then fallback to local version if it is not available.

To use jQuery in your web app, you have to provide script tag with link to CDN or any other link that provides the file.

I hope this helps.
 
Share this answer
 
In 2013 CDN is linked to JQuery, it served JQuery files to download and refer, A Content Delivery Network (CDN) is a system of computers that exist all over the world and cache files for users to access. CDNs can greatly reduce the load time of a page by offering files at a higher bandwidth from a server that is physically closer to your visitor than your web server might be.
CDN network is much faster than the average server, and geographically distributed so that round-trip times are kept low. Yet there is another subtle benefit
If you application got internet access then you can simple refer it LIVE and no need to download the files, otherwise you can download them and keep it in your resources folder and refer from there only
check below link
jQuery's Content Delivery Network: You Got Served! | Official jQuery Blog[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900