Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop "https:" part in the links #7

Open
trofosila opened this issue Jan 6, 2021 · 1 comment
Open

Drop "https:" part in the links #7

trofosila opened this issue Jan 6, 2021 · 1 comment

Comments

@trofosila
Copy link
Member

You can drop the "https:" bit on your a href links (e.g. "https://twitter.com/ZepliaLab" becomes "//twitter.com/ZepliaLab") because the browser will assume the same URL scheme as your website, which is https.

See https://www.reddit.com/r/programming/comments/krooqi/a_full_website_in_17_kb_all_assets_included/gibc74z/

@trofosila
Copy link
Member Author

See this also:
https://www.paulirish.com/2010/the-protocol-relative-url/

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

No branches or pull requests

1 participant