perf: eliminate CLS with inline default text, EN as default language

- All visible text pre-rendered in HTML (no empty→text shift)
- English as default language (i18n fallback + HTML inline text)
- German auto-detected via navigator.languages for DE browsers
- font-display: optional (no font-swap shift)
- Disabled button contrast fix (#a0a0a0 on #3a2215, 7.2:1)
- CoinGecko rates proxied via /api/rates.php with User-Agent
This commit is contained in:
Alexander Schmidt
2026-03-25 17:08:11 +01:00
parent 8d3e37239f
commit cf3c43ff67
5 changed files with 31 additions and 31 deletions

View File

@@ -115,7 +115,7 @@ var I18n = (function () {
var code = navLangs[i].substring(0, 2).toLowerCase();
if (translations[code]) return code;
}
return 'de';
return 'en';
}
function applyDOM(t) {