Comment

Comment by TomGullen

Lesser known HTTP feature that I love, instead of linking to resources like follows:

<link rel="shortcut icon" href="http://static4.scirra.net/images/favicon.ico />

You should link as follows:

<link rel="shortcut icon" href="//static4.scirra.net/images/favicon.ico" />

The double forward slash will select the current protocol the page is being viewed on which means no security errors if you're switching between http/https!

parent TomGullen 14 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton