How to load jQuery from CDN?

Answer Posted / chaitanya

Below is the code to load jQuery from all 3 CDNs.

Code to load jQuery Framework from Google CDN

Hide Copy Code

<script type="text/javascript"

src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">

</script>

Code to load jQuery Framework from Microsoft CDN

Hide Copy Code

<script type="text/javascript"

src="http://ajax.microsoft.com/ajax/jquery/jquery-1.9.1.min.js">

</script>

Code to load jQuery Framework from jQuery Site(EdgeCast CDN)

Hide Copy Code

<script type="text/javascript"

src="http://code.jquery.com/jquery-1.9.1.min.js">

</script>

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between parent() and parents() methods in jquery? : jquery mobile

464


What are the the two types of cdns?

447


Why we use chaining in jquery?

488


Explain the difference between .js and .min.js?

488


List the advantage of using minimized version of jquery?

429






What is the difference between text() and html() in jquery?

447


How can events be prevented from stopping to work after an ajax request?

463


What is the advantage of using minimized version of jQuery?

489


Explain which program is useful for testing jquery?

8688


What are the advantages of method chaining in jquery?

484


Mention the differences between javascript and jquery.

437


How can you use array with jquery?

456


Explain slidetoggle() effect.

517


How we can hide a block of html code on a button click using jquery?

485


How to resolve conflicts with other libraries?

510