Possible Duplicate:
Is it valid to replace with // in a <script src=“…”>?
I've been seeing sites linking to CSS and JS without the protocol more and more often lately:
<script src="//domain.cloudfront.net/file.js" type="text/javascript"></script>
And CSS
<link href="//domain.cloudfront.net/styles.css" media="screen" rel="stylesheet" type="text/css" />
Is this valid in all browsers? Does leaving off http
or https
mean the browser intelligently decides which protocol to use?