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

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -