Is there any downside for using a leading double slash to inherit the protocol in a URL? i.e. src=”//domain.com”

If the browser supports RFC 1808 Section 4, RFC 2396 Section 5.2, or RFC 3986 Section 5.2, then it will indeed use the page URL’s scheme for references that begin with “//”.

Leave a Comment