Basically when you prefix a URL with "//" instead of "http://" or "https://"
you're telling the browser to infer the appropriate protocol based upon
what protocol the current page is using.

It's a pretty sweet thing, as it lets you use the same HTML on sites which
are hosted on both https and http.


On Tue, Aug 27, 2013 at 12:52 PM, Abi Noda <notifications@github.com> wrote:

> In app/views/layout.erb:
>
> > @@ -12,8 +12,8 @@
> >    -->
> >
> >    <link rel="stylesheet" href="/css/application.css">
> > -  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
> > -  <link href='http://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
> > +  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
> > +  <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
>
> @abrahamsangha <https://github.com/abrahamsangha> the script tag shouldve
> been left how it was -- the fonts stylesheet tag should have been switched
> to //fonts
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Devbootcamp/developer/pull/5/files#r6016250>
> .
>