osx - Is it possible to get // to work locally? -
i lot of small-scale front-end projects don't want spend time setting dev enviroments. when develop locally, write html , open files in browser. works fine. @ times wish use //
instead of protocol when referencing file, like:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
this cause work both http
, https
, if protocol file://
won't work. there way solve this? prefer not having run local server , setting domains each project.
Comments
Post a Comment