Dark Launch

Use a relative URL for JavaScript, CSS & Images

A relative URL without a scheme is perfectly valid.

Javascript
<script src="//www.example.com/script.js"></script>
HTML
<link href="//www.example.com/style.css" rel="stylesheet" type="text/css" />
HTML
<img alt="" src="//www.example.com/image.png" />
Code
https://www.example.com:8080/some/resource?key=value#hash
\___/   \_____________/ \__/ \___________/ \_______/ \__/
  |            |         |         |           |      |
scheme        host      port      path       query   fragment