Sweet. It works inside of style sheets as well:

background: url('//example.com/path/to/file.png') top left no-repeat;


On 26 Jul 2011, at 22:24, Michael Jones 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 security issue. I just don't know how much I'm allowed
>> to say about our infrastructure. The css referred to might not even reside
>> on the same lds.org server. Sorry if I wasn't clear. - Ed Felt
>> 
>> _______________________________________________
>> 
>> UPHPU mailing list
>> [email protected]
>> http://uphpu.org/mailman/listinfo/uphpu
>> IRC: #uphpu on irc.freenode.net
>> 
> 
> _______________________________________________
> 
> UPHPU mailing list
> [email protected]
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net


_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to