Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Hardcoded in https over protocol-relative links. #2

Merged
merged 1 commit into from
Oct 27, 2014

Conversation

wpears
Copy link
Contributor

@wpears wpears commented Oct 24, 2014

Protocol-relative links are a neat trick, but really more of an anti-pattern when pulling in resources that are certain to be available over SSL.

One version of the resource means caching will work whether the main page is accessed through http or https.

…of the ssl handshake is outweighed by more cache hits.
@konklone
Copy link
Contributor

👍 Down with protocol-relative URLs.

@theresaanna
Copy link
Contributor

@wpears Thank you for this! The Google Fonts URL is the first time I've consciously used the protocol-relative trick - the jQuery API is a copy+paste job - as I hadn't seen a use for it prior. Good to learn more about its side effects.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants