News for hackers. Stuff that matters.
Re:Impressive html5/css3 clock; no Flash. by seanalltogether on Wednesday October 05, 2011 @12:10PM (#3076235)
checking out the source i noticed all the hrefs are missing http:, how does that work, whats the purpose of this?

<link rel="stylesheet" href="//aprilzero.s3.amazonaws.com/a0/lib/c/styles.css">

Re:Impressive html5/css3 clock; no Flash. by edd on Wednesday October 05, 2011 @12:11PM (#3076241)
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.
Re:Impressive html5/css3 clock; no Flash. by brlewis on Wednesday October 05, 2011 @12:15PM (#3076260)
It's a network-path reference as defined in RFC 2396. The purpose is to fetch styles/scripts/images by https if the page is fetched by https.