Referring to url as src = "//www.example.com/blah.js"

I saw links to images and .js files, for example:

src="//www.example.com..." 

is a method, so does it work in both http and https?

+4
source share
1 answer

Yes. If you leave the protocol, most modern browsers will use everything that is used by the current page.

+3
source

Source: https://habr.com/ru/post/1338795/


All Articles