7 ms·
It is a protocol relative url. This way if you are looking at the site over https then the assets will also come down over https.
by edd 15y ago
It is a protocol relative url. This way if you are looking at the site over https then the assets will also come down over https.
- mattmanser 15y agoI was pondering today why no-one really knows about or even uses it. As a bit of a general question to everyone, did old browsers not support it or something? Or do people prefer using relative urls over absolute style ones?
- Semiapies 15y agoI had to be told, years back, so I think it's just an assumption. Also, for those pesky secured sites that have unsecured static assets on a separate server, it might be that those servers aren't configured for SSL.
- mattmanser 15y agoNo point in that configuration though as your browser will report the site as insecure.
- karl_nerd 15y agoPaul Irish blogged about it a while ago http://paulirish.com/2010/the-protocol-relative-url/ http://paulirish.com/2010/the-protocol-relative-url/
- mattmanser 15y agoFor those interested, the reason the old google analytics snippet wasn't using this instead of document.write: There is an edgecase bug in IE6 that causes a dialog to blow up… under some security settings (unsure if they are default) when requesting form the non-'ssl' subdomain So looks as if it's fine to use if you're not supporting IE6. The new GA snippet uses different domains for the two modes so it can't be used.