What is the advantage of using protocol less URL while referencing jQuery from CDNs?



What is the advantage of using protocol less URL while referencing jQuery from CDNs?..

Answer / chaitanya

It is quite useful when you are moving from HTTP to HTTPS url. You need to make sure that correct protocol is used for referencing jQuery library as pages served via SSL should contain no references to content served through unencrypted connections.

"protocol-less" URL is the best way to reference third party content that’s available via both HTTP and HTTPS. When a URL’s protocol is omitted, the browser uses the underlying document’s protocol instead. Find out more here.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

Explain various methods to make ajax request in jquery? : jquery mobile

0 Answers  


How to use jquery library in our asp.net project?

0 Answers  


How to control page titles in jquery mobile? : jquery mobile

0 Answers  


What are the selectors in jquery? How many types of selectors in jquery?

0 Answers  


And finally, if you could give one tip to any new budding jquery ui developers, what would it be?

0 Answers  






Is jquery library used for server scripting or client scripting?

0 Answers  


What is the difference between the knockout and jquery?

0 Answers  


How do I pull a native DOM element from a jQuery object?

0 Answers   MCN Solutions,


How to use connect in jquery?

0 Answers  


Can you write a code to select all links inside the paragraph?

0 Answers  


Can you please explain the difference between parent() and parents() methods in jquery? : jquery mobile

0 Answers  


What are features of jquery or what can be done using jquery?

0 Answers  


Categories