title: Javascript src starts with //?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/550038/is-it-valid-to-replace-http-with-in-a-script-srchttp">Is it valid to replace  with // in a &lt;script src=&ldquo;&hellip;&rdquo;&gt;?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm starting to see more and more script references show up like so:</p>
  
  <pre><code>&lt;script type="text/javascript" src="//somedomain.com/somescript.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Note the lack of http: at the beginning of the src attribute.</p>
  
  <p>It seems to work fine and avoids the messy requirement of detecting http vs https, but I've never actually seen this uri format referenced anywhere. Where did it come from? Is this behavior documented anywhere? Is it guaranteed to work in any browser?</p>