Protocol Relative URLs
Posted April 16th, 2013 @ 02:43pm by Erik J. Barzeski
The protocol-relative URL - Paul Irish
In short, just specify things like this:
<img src="//site.com/imgs/photo.png">
The "//" will fetch via HTTPS or HTTP depending on how the user is currently visiting.