We use this syntax at my work. It is very handy! On Jul 26, 2011 10:24 PM, "Michael Jones" <[email protected]> wrote:
It seems that what the // does (based on the W3 thread linked earlier) is it makes use of the current base protocol. Without delving into the LDS infrastructure, the key here is that the CSS files are not hosted on lds.org , but on ldscdn.org -- doesn't really matter if these are the same server or not obviously, but presumably the CDN is separately hosted, which is where this becomes really useful. So if I visit https://lds.org/, the // ensures that the CSS and image resources are loaded from https://ldscdn.org/, thus avoiding any browser errors that the resources are coming from a non-secure location, but also avoiding any server-side logic to determine whether or not to source http or https, as the current protocol is automatically assumed for that link. Very cool. On Tue, Jul 26, 2011 at 10:04 PM, Ed Felt <[email protected]> wrote: > > Of course it's not a securi... _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
