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 -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -