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 the difference between .js and .min.js? : jquery mobile

1 Answers  


What is a use of jquery filter?

1 Answers  


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

2 Answers  


How can you use a jquery library in your project?

1 Answers  


How to use it jquery knockout?

1 Answers  


How JavaScript and jQuery are different?

1 Answers  


What is jquery selectors? Give some examples.

1 Answers  


What is the difference between the knockout and jquery?

1 Answers  


Consider a scenario where things can be done easily with javascript, would you still prefer jQuery?

1 Answers  


Have any of your startup projects failed dismally - if so, why and how did you learn from them?

1 Answers  


List a few features of jquery mobile? : jQuery Mobile

1 Answers  


Write the code to define a requirejs module with its dependencies.

1 Answers  


Categories