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
How to get the direct parent of an element using ?
Can you write a jquery code to select all links inside the paragraph?
What is the use of jQuery load method?
List the advantages of jquery?
How to add a class to html element?
How to validate email using jquery?
How to use connect in jquery?
How to programmatically trigger a click event that's being handled by jquery?
Explain the script build up by jquery?
Which selector has better performance id or class and why?
Define the use jquery.data method?
How does jquery mobile theming work? : jquery mobile
What is .bind()? : jquery mobile
How is body onload() function is different from document.ready() function used in jquery?
How do you update ajax response with id " resilts"?