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 |
Define .siblings() method in jquery?
Why is jquery better than javascript?
Can we execute/run multiple Ajax request simultaneously in jQuery? If yes, then how?
Explain url paremeter of jquery ajax method?
Difference between find() and closest() in jquery?
What is jQuery plugin and what is the advantage of using plugin?
What is the difference between $(this) and 'this' in jquery?
What are the advantages of jQuery?
Explain data paremeter of jquery ajax method?
Have any of your startup projects failed dismally - if so, why and how did you learn from them?
What is the use of serialize method in jQuery?
What is jQuery.noConflict?