i open index.html in browser file:///
, scripts no protocol name not loaded.
<script type="text/javascript" language="javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script>
this doesn't work in mozilla 36.0.4, chrome on machine.
on using node-static
server, jquery file gets loaded successfully.
can skip protocol names in script
links , still open file file:///
?
no, need edit index.html files , add 'http' or 'https' script tags.
skipping protocol means using same protocol page loaded (which useful instance if allow both http , https). in case browser interpret above as:
<script type="text/javascript" language="javascript" src="file:///code.jquery.com/jquery-1.10.2.min.js"></script>
Comments
Post a Comment