JQuery Programmer Question:
Download Questions PDF

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

JQuery Programmer Interview Question
JQuery Programmer Interview Question

Answer:

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.

Download JQuery Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How can images be made to appear scrolling one over another?How to set attributes of an element using jQuery?