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



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

Answer / 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

More jQuery Interview Questions

Give a brief idea about jquery mobile? : jQuery Mobile

1 Answers  


What is jquery selectors?

1 Answers  


Tell me does jquery 2.0 supports ie? : jquery mobile

1 Answers  


How to get the current offset of the first matched element, in pixels, relative to the document using ?

1 Answers  


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

1 Answers  


Explain the difference between onload() and document.ready() function used in jquery?

1 Answers  


How to check if number is numeric while using jquery 1.7+? : jquery mobile

1 Answers  


Define data paremeter of jquery ajax method?

1 Answers  


Difference between event.PreventDefault and event.stopPropagation?

1 Answers  


Why are not some scripts and styles loading? : jquery mobile

1 Answers  


How to delete cookies in jquery?

1 Answers  


What features of jquery, has been used in web applications?

1 Answers  


Categories