perf: lighthouse optimizations - inline critical CSS, lazy-load routes, WebP images, fix CLS and contrast

This commit is contained in:
2026-02-08 11:22:36 +01:00
parent 013d591e75
commit c66c80adcc
23 changed files with 448 additions and 101 deletions

View File

@@ -30,7 +30,10 @@ async function initApp() {
await import('./components/app-shell.js')
document.getElementById('app').innerHTML = '<app-shell></app-shell>'
const appEl = document.getElementById('app')
if (!appEl.querySelector('app-shell')) {
appEl.innerHTML = '<app-shell></app-shell>'
}
if ('serviceWorker' in navigator) {
try {