aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-04-22 14:32:03 +0530
committerBobby <[email protected]>2026-04-22 14:32:03 +0530
commitbbe9d34700995ba1644d726743dbb61144052bd1 (patch)
treebee0455edb7023d08b348022672ec2c294f2579c /routes
parent87f4e51a2804d0788c8cd1fcde56923d19d0e06c (diff)
downloadhollowdark-main.tar.xz
hollowdark-main.zip
Load the content manifest and cache every chunk to IndexedDB on initial loadHEADmain
Diffstat (limited to 'routes')
-rw-r--r--routes/+layout.svelte4
-rw-r--r--routes/+page.svelte6
2 files changed, 5 insertions, 5 deletions
diff --git a/routes/+layout.svelte b/routes/+layout.svelte
index 0cf4c43..0d84d4d 100644
--- a/routes/+layout.svelte
+++ b/routes/+layout.svelte
@@ -1,12 +1,12 @@
<script lang="ts">
- import { base } from '$app/paths'
+ import { assets } from '$app/paths'
import AudioPlayer from '@hollowdark/lib/audio/AudioPlayer.svelte'
import { highContrast, reduceMotion } from '@hollowdark/lib/accessibility/state'
import { textSize, type TextSize } from '@hollowdark/lib/reading/state'
let { children } = $props()
- const titleTrackSrc = `${base}/audio/title/piano-relaxing.mp3`
+ const titleTrackSrc = `${assets}/audio/title/piano-relaxing.mp3`
const ALL_TEXT_SIZE_CLASSES: readonly string[] = [
'text-size-small',
diff --git a/routes/+page.svelte b/routes/+page.svelte
index babf994..debc068 100644
--- a/routes/+page.svelte
+++ b/routes/+page.svelte
@@ -1,10 +1,10 @@
<script lang="ts">
import { onMount } from 'svelte'
import { goto } from '$app/navigation'
- import { resolve } from '$app/paths'
+ import { assets, resolve } from '$app/paths'
import BeginScreen from '@hollowdark/lib/screens/BeginScreen.svelte'
import InitialLoadScreen from '@hollowdark/lib/screens/InitialLoadScreen.svelte'
- import { runStubInitialLoad } from '@hollowdark/loading/stub'
+ import { runInitialLoad } from '@hollowdark/loading/content'
import { detectBeginState, type BeginState } from '@hollowdark/loading/session'
import {
hasCompletedInitialLoad,
@@ -18,7 +18,7 @@
onMount(async () => {
if (!hasCompletedInitialLoad()) {
- await runStubInitialLoad()
+ await runInitialLoad(assets)
markInitialLoadComplete()
}
beginState = await detectBeginState()