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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -