Kudos on the nice UX for dropdown with countries. I wish more websites do it. Usually, it's "United States" at the very top, and 194 other countries in a loooooong list.
Even better are the ones where you pick your country and the 'state' dropdown is still US states and 'Other', and you're prompted for a 'zip code'. What does American mail have to do with a zip anyway?
Not sure if your question is flippant/rhetorical, but in case you're genuinely curious: ZIP stands for Zone Improvement Plan, the initiative that set up the "postal codes" that we call ZIP codes.
I don't quite recall, but I think ZIP may actually be a backronym; in US English, "zip" is a word that also means "to move quickly", and they wanted to evoke a feeling that postal mail gets delivered faster when you include the ZIP code, which makes sorting mail more efficient.
Ooo yes there's nothing I hate more than an address form for a business that clearly works internationally being only really compatible with US addresses. My "state"? At least Germany or something has states the UK does not. My "city"? In the UK cities and towns are distinct and I am from a town. I have very occasionally actually then not been able to proceed because someone has not actually configured the "zip code" field to accept postal codes that include letters.
I use navigator.languages to guess the user's possible countries. It's not perfect, but the cost of guessing wrong is low. I've used the same technique to show currency conversion tooltips in the content.
> I use navigator.languages to get a list of supported languages. For example, en-CA, fr-CA, de-DE. This gives me a list of countries the user might have lived in. I suggest those countries at the top of the country list.
The OP wrote this is based on "navigator.languages" feature in the visitor's browser. So if your preferred language is set to e.g. French, then you shall see France at the top of dropdown.
TheHappyOddish|2 years ago
kelnos|2 years ago
I don't quite recall, but I think ZIP may actually be a backronym; in US English, "zip" is a word that also means "to move quickly", and they wanted to evoke a feeling that postal mail gets delivered faster when you include the ZIP code, which makes sorting mail more efficient.
helboi4|2 years ago
nicbou|2 years ago
sagarm|2 years ago
gumballindie|2 years ago
martin_a|2 years ago
> I use navigator.languages to get a list of supported languages. For example, en-CA, fr-CA, de-DE. This gives me a list of countries the user might have lived in. I suggest those countries at the top of the country list.
melx|2 years ago
lucb1e|2 years ago
mkreis|2 years ago