Skip to content

Commit cc3cd30

Browse files
author
Rich Harris
committed
preload
1 parent c562fbb commit cc3cd30

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="color-scheme" content="dark light" />
88
%sveltekit.head%
99
</head>
10-
<body>
10+
<body data-sveltekit-preload-data="hover">
1111
<div>%sveltekit.body%</div>
1212
</body>
1313
</html>

src/routes/tutorial/[slug]/Menu.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,7 @@
135135
? 'page'
136136
: undefined}
137137
>
138-
<a
139-
data-sveltekit-preload-data
140-
href="/tutorial/{exercise.slug}"
141-
on:click={() => (is_open = false)}
142-
>
138+
<a href="/tutorial/{exercise.slug}" on:click={() => (is_open = false)}>
143139
{exercise.title}
144140
</a>
145141
</li>

0 commit comments

Comments
 (0)