Is the Google jQuery CDN script link missing the leading "https:" for some reason?

I didn’t have to intercept the link for a while, but when jquery undefined errors appeared, I noticed that the link "http:" or "https:" was missing in the CDN script url. This explicitly creates a broken link. I am wondering if this is intentional or a bug in the Google part. Any insight would be great.

Example: <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"></script>

Should it be ?: <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"></script>

https://developers.google.com/speed/libraries/devguide

+6
source share
1 answer

// give it a real protocol. This means that if you go to http://example.com , then the cdn link will also use http:// , whereas if you go to https://example.com , then the cdn link will use https .

+9
source

All Articles