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

What is the difference between bind() and live() function in jquery?

0 Answers  


What is $() in jquery?

0 Answers  


Define the use of each function in jquery?

0 Answers  


List the advantages of jquery?

0 Answers  


How to select combobox select value and text using jquery?

0 Answers  






What are selectors in jquery?

0 Answers  


Explain .bind() vs .live() vs .delegate() vs .on()

2 Answers  


What is event.PreventDefault?

1 Answers  


Explain cdn? : jquery mobile

0 Answers  


What's next on the hitlist with jquery ui?

0 Answers  


What is the difference between jquery's ready and holdready?

0 Answers  


Tell me how to check data type of any variable in jquery? : jquery mobile

0 Answers  


Categories