[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Web page management.



On Wed, Feb 08, 2023 at 04:25:25PM -0500, Stefan Monnier wrote:
> > The HTML file will contain references to each of the URLs,
> > directing the browser to go fetch things from them and execute
> > or display them as appropriate.
> 
> FWIW, that HTML page does not include "gstatic" in its source text (but
> apparently some other pages fetched from `canada.ca` do).
> OTOH, it contains a weird:
> 
>     <script src="//assets.adobedtm.com/be5dfd287373/abb618326704/launch-3eac5e076135.min.js"></script>
> 
> what's this "//"?  Do web browsers automatically add a "http(s):" in
> front nowadays, or does it end up referring to a copy on the
> CRA's server.

Yes: that means "keep the URL scheme" -- practically http or https.
It's in the RFCs [1], although the quote itself is funny:

  "A relative reference that begins with two slash characters
   is termed a network-path reference; such references are
   rarely used."

Plus ça change... :-)

Cheers

[1] https://www.rfc-editor.org/rfc/rfc3986#section-4.2

-- 
t

Attachment: signature.asc
Description: PGP signature


Reply to: