site: preload fonts (#9132)

Co-authored-by: Puru Vijay <devpuruvj@gmail.com>
pull/9139/head
Ben McCann 1 year ago committed by GitHub
parent f2ead82a40
commit 2f5d573a9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,6 @@
/** @type {import('@sveltejs/kit').Handle} */
export async function handle({ event, resolve }) {
return await resolve(event, {
preload: ({ type }) => type === 'js' || type === 'css' || type === 'font'
});
}
Loading…
Cancel
Save