2

I've noticed that a lot of links to remote libraries are missing the http: from the src attribute: (this site uses it as well: that's where I got the example below)

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

Is there an advantage in linking to remote files in this way? I know this question will probably get flagged because it doesn't call for a specific coding response, but I've searched for an answer without a whole lot of luck, probably because I don't know how to refer to it correctly.

4

0 回答 0