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 |
What is a cdn? : jQuery Mobile
How can jquery be used in conjunction with another javascript library that also uses $ for naming?
Can you please explain the difference between event.preventdefault and "return false"? : jquery mobile
What is the latest version of jquery?
List the advantages of jquery?
What is the use of jQuery load method?
Is Uncaught TypeError: $(…).modal not a function jquery?
What is jquery selectors? Give some examples.
What is the use of jQuery.ajax method ()?
What is the difference between event.PreventDefault and event.stopPropagation?
Does jQuery 2.0 supports IE?
How do I check if an element is hidden in jQuery?