Can we use protocol less URL while referencing jQuery from CDNs?

Answer Posted / chaitanya

Yes. Below code is completely valid.

Hide Copy Code

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the two types of cdns?

485


Explain the features of jquery mobile? : jquery mobile

427


How we can get the value of a radio button using jquery?

420


Explain width() vs css(‘width’)?

417


Explain "beforesend(xhr)" paremeter of jquery ajax method?

409






Is it possible that jquery html work for both html and xml document?

441


What are the browser related issues for jQuery?

464


Explain the script build up by jquery?

8892


How do you get the text value of a selected option?

398


Explain the advantages of jquery?

511


What is normally not included in a cloned copy? : jQuery Mobile

484


How you will use jquery means requirement needed for using jquery.

421


Define the script build up by jquery?

496


Create a plugin that would add and remove a class on hover.

434


Tell me how do you stop the currently-running animation? : jquery mobile

417