Protocolrelative
Protocolrelative refers to a URL that omits the scheme and begins with //, causing the browser to use the same protocol as the containing page. It is also called a protocol-relative URL. The technique allows a resource to be requested without hardcoding http or https, deferring the decision to the page that embeds it.
In practice, protocol-relative URLs are often used for external resources such as scripts, stylesheets, fonts, or
The approach arose during periods of mixed content concern as sites migrated to HTTPS. As TLS adoption
Drawbacks include dependency on the external host supporting both protocols; if the resource is unavailable over
Today, protocol-relative URLs are largely considered a legacy technique. In new development, explicit https URLs or