JQuery Programmer Question: Download JQuery Programmer PDF

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

Tweet Share WhatsApp

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 PDF Read All 201 JQuery Programmer Questions
Previous QuestionNext Question
How can images be made to appear scrolling one over another?How to set attributes of an element using jQuery?