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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -