5 ms·
what's the benefit of excluding the http:? I'd never seen that prior to a few years ago when the jQuery links started doing it.
by toxican 13y ago
what's the benefit of excluding the http:? I'd never seen that prior to a few years ago when the jQuery links started doing it.
- hesselink 13y agoIt's a protocol relative link. So if the page is served over http, it'll be an http link, and if the page is served over https, it'll be an https link. See http://en.wikipedia.org/wiki/Protocol_relative_URL#Protocol-relative_URLs http://en.wikipedia.org/wiki/Protocol_relative_URL#Protocol-...
- dagga 13y agobrowser chooses http or https for you. Same as current page was requested.
- zeograd 13y agoit will reuse the protocol of the current page, think http or https or spdy or whatever comes in the future.
- daveid 13y agoThe browser will load the resource from whatever protocol the current page is loaded from. So if the page is on https, the URL will be accessed as https, otherwise as http.
- thefreeman 13y agodagga, FYI, you are hellbanned. I am not sure why, your comments look reasonable. I would email a staff member or create a new account.