html - Any downsides to using image src without protocol? -


basically, wanting switch ssl, , maybe 1 day site might not have ssl, need downgrade using http: protocol if needed without trouble. wondering if use approach images ok? , if there downsides this?

<img src="//path/to/image.jpg" /> 

and

<img src="//another.site.com/images/path/to/image.jpg" /> 

this seems work fine, wondering if there downsides images without protocols in browsers, or otherwise?

thanks


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -