first commit

This commit is contained in:
2025-08-25 12:19:58 +03:30
parent f798e8e35c
commit 2f6a7242c4
20 changed files with 885 additions and 1302 deletions

View File

@@ -13,5 +13,13 @@ export async function loadFonts() {
})
}
export default function () {
loadFonts()
const idle = window.requestIdleCallback || (cb => setTimeout(cb, 1500))
idle(() => {
try {
loadFonts()
} catch (e) {
// If idle loading fails for any reason, fallback after a short delay
setTimeout(() => loadFonts(), 1000)
}
})
}