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

python - Getting ESC characters and non-printables from UDP socket / buffer -

Convert excel to pdf with VBScript -