perf: async load posts on main page

This commit is contained in:
James Xylight committed 2025-08-29 19:23:08 -07:00
1 parent 59e99c04d8
commit 29c2e97efc
4 files changed
+81 -58

No files matched your search

+1 -2
View File
@@ -1,9 +1,8 @@
import { browser } from '$app/environment'
import { env } from '$env/dynamic/public'
import { settings } from '$lib/settings.svelte'
import { aliases, loadTranslations } from '$lib/i18n/translations.js'
export const ssr = (env.PUBLIC_SSR_ENABLED?.toLowerCase() ?? 'false') == 'true'
export const ssr = false
export const load = async () => {
if (browser) {