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 -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -