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

How to programmatically trigger a click event that's being handled by jquery?

0 Answers  


Explain the features of jquery mobile? : jquery mobile

0 Answers  


How can you apply a style on an element using jQuery?

0 Answers  


Can we use jQuery to make ajax request?

2 Answers  


Explain some features of jquery knockout?

0 Answers  






Name 3 available jquery plugins that bootstrap has in their query plugin library.

0 Answers  


what does $("div") will select? : jquery mobile

0 Answers  


What is the use of clone method in jQuery?

0 Answers  


What happen if you return false from a jQuery event handler?

0 Answers  


Define cdn in jquery?

0 Answers  


Why should I use jquery?

0 Answers  


How can you add a jquery library in your project?

0 Answers  


Categories