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

How to use css() in jquery?

610


What is parseint() and why it is used?

663


Define animate function in jquery?

616


What are the types of selectors in jQuery?

638


Explain some benefits of jquery knockout?

596


What are the various ajax functions?

633


How to executed jquery selectors? : jquery mobile

585


Explain why there are two different version of jquery library? : jquery mobile

630


What is the difference between prop() and attr() in jquery?

583


Explain the use of each function in jquery?

3976


What are the difference between empty(), remove() and detach() functions in jquery?

614


What is $() in jquery?

662


Can you please explain the difference between .js and .min.js? : jquery mobile

549


What is difference between .setinterval() and .delay() ?

583


When can jquery be used?

633