diff --git a/client/src/hooks.server.js b/client/src/hooks.server.js index d8a923d..bb0db02 100644 --- a/client/src/hooks.server.js +++ b/client/src/hooks.server.js @@ -82,5 +82,8 @@ export async function handle({ event, resolve }) { if (event.url.pathname === "/") { throw redirect(303, "/profile"); } - return await resolve(event); + return await resolve(event, { + preload: ({ type }) => + type === "js" || type === "css" || type === "font", + }); }