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 bind() vs live() vs delegate() methods.

0 Answers  


What is cdn? Explain

0 Answers  


Can we add more than one ‘document.ready’ function in a page?

0 Answers  


How to get attributes of an element using jQuery?

0 Answers  


Differences Between jQuery .bind() and .live()?

0 Answers  






Can we call C# code behind using jQuery?

0 Answers  


What are selectors in jquery? Explain

0 Answers  


How can you add a jquery library in your project?

0 Answers  


What is the use of delegate() method in jquery?

0 Answers  


What are the advantages of minified version of jquery?

0 Answers  


Explain some benefits of jquery knockout?

0 Answers  


What is jquery.holdready() function?

0 Answers  


Categories