Skip to content

Commit 8b8df39

Browse files
committed
site: preload fonts
1 parent 670200c commit 8b8df39

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('@sveltejs/kit').Handle} */
2+
export async function handle({ event, resolve }) {
3+
return await resolve(event, {
4+
preload: ({ type }) => type === 'js' || type === 'css' || type === 'font'
5+
});
6+
}

0 commit comments

Comments
 (0)