// Vs http:// when including remote content

1

My website content is served over SSL and my webpage uses Google Adsense. In The ad code the javascript file is included from: //pagead2.googlesyndication.com/pagead/js/adsbygoogle.js I would just like to know what // does instead of http:// or https:// and why you should or shouldn't use it instead of http:// or https://

Thanks again, Francis

Francis

Posted 2013-12-26T15:41:06.897

Reputation: 25

Answers

2

It's so that the link works when the page it's on is requested as HTTP or HTTPS.

If the link was HTTP specifically, and then the user requested the page as HTTPS, they would get the "Not all content is secure" type warning from their browser.

Perhaps check out there StackOverflow questions for more info:

Ƭᴇcʜιᴇ007

Posted 2013-12-26T15:41:06.897

Reputation: 103 763