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
Explain the difference between jquery-x.x.x.js and jquery.x.x.x min.js?
How does jquery mobile theming work? : jquery mobile
Please tell us that is jquery knockkout intended to compete with jquery or prototype or work with it?
Is jQuery a programming language?
What is difference between sorting string array and sorting numerical array in jquery?
Explain .live()? : jquery mobile
Explain the use of the .pushstack() method.
Explain jquery connect?
Define jquery connect?
Difference between detach and remove? : jQuery Mobile
Explain the use of data-role=”page” attribute? : jQuery Mobile
Define data paremeter of jquery ajax method?
Difference between parent() and parents() in jQuery?
What is the jQuery code to select all links inside the paragraph?
Can you use multiple document.ready() function on the same page?