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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check/uncheck an input in jquery?

658


What is the method used to define the specific character in place of $ sign?

742


How to use jquery?

676


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

617


What are the various ajax functions?

633


How to include jQuery in ASP.Net project?

683


Is jQuery a programming language?

628


Explain the difference between jquery.size() and jquery.length?

636


How can images be made to appear scrolling one over another?

603


Difference Between Prop and Attr in jQuery?

623


Can you please explain the difference between javascript and jquery? : jquery mobile

590


Whether we need to add jQuery file in both Master and Content page?

616


Is jquery is json library file or a javascript?

575


How do you update ajax response with id " resilts"?

681


What is jquery a client or server scripting?

620