html - What does `//` in javascript's src attribute do? -


i'm using facebook's javascript sdk , has double forward slashes. mean?

<script src="//connect.facebook.net/en_us/all.js"></script>

i know single / means root directory, //? telling source use http:// , path?

this "protocol-relative" link. uses http or https depending on used load current page.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -