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.
Re:Impressive html5/css3 clock; no Flash.
by mattmanser on Wednesday October 05, 2011 @12:32PM
(#3076341)
I 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?
Re:Impressive html5/css3 clock; no Flash.
by karl_nerd on Wednesday October 05, 2011 @01:18PM
(#3076554)
Paul Irish blogged about it a while ago http://paulirish.com/2010/the-protocol-relative-url/
Re:Impressive html5/css3 clock; no Flash.
by mattmanser on Wednesday October 05, 2011 @02:34PM
(#3076888)
For 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.
Re:Impressive html5/css3 clock; no Flash.
by Semiapies on Wednesday October 05, 2011 @12:55PM
(#3076454)
I 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.
Re:Impressive html5/css3 clock; no Flash.
by mattmanser on Wednesday October 05, 2011 @02:30PM
(#3076874)
No point in that configuration though as your browser will report the site as insecure.
<link rel="stylesheet" href="//aprilzero.s3.amazonaws.com/a0/lib/c/styles.css">