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

Define the use of each function in jquery?

0 Answers  


How to check data type of any variable in jQuery?

1 Answers   Infoica Tech,


What is jQuery code to select all links in first paragraph?

0 Answers  


How to check or uncheck all checkboxes using jquery?

0 Answers  


Why jquery?

0 Answers  


How can I select 20th div with jquery?

0 Answers  


Define type paremeter of jquery ajax method?

0 Answers  


What is serialize() in jquery?

0 Answers  


Does jquery 2.0 supports ie? : jquery mobile

0 Answers  


How can we apply css in odd childs of parent node using jquery library?

0 Answers  


What is jquery.holdready() function?

0 Answers  


What is queue() in jquery? Use of queue() in jquery?

0 Answers  


Categories