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 |
Explain the concepts of "$ function" in jquery with an example?
What is the purpose of jquery?
What is the difference between jquery.get() and jquery.ajax()?
Explain the use of jquery .each() function? : jquery mobile
What is $() in jquery?
What is the difference between bind() and live() function in jquery?
What is the basic need to start with jQuery?
What are source maps in jQuery?
How can events be prevented to work after an ajax request?
Explain chaining in jquery? : jquery mobile
What is the use of .size() method in jquery?
What are selectors in jQuery and how many types of selectors are there?