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 |
How can you delay document.ready until a variable is set?
What is a cdn? What are the advantages of using cdn?
How to revert the most recent ‘destructive’ operation, changing the set of matched elements to its previous state using ?
What is the goal of cdn and what are the advantages of using cdn?
What is .bind()? : jquery mobile
What is difference between .setinterval() and .delay() ?
How to programmatically trigger a click event that's being handled by jquery?
Difference between parent() and parents() in jQuery?
Can we add more than one ‘document.ready’ function in a page?
What is jquery.size()? : jquery mobile
How can we include jQuery library in ASP.Net project?
How to use migrate jquery plugin if possible? : jquery mobile