We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 670200c commit 8b8df39Copy full SHA for 8b8df39
sites/svelte.dev/src/hooks.server.js
@@ -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