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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -