Skip to content

Commit cde83f1

Browse files
committed
move preload up
1 parent 58c50f9 commit cde83f1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

www/_includes/layout.njk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ title: hyperscript
4545
end
4646
end
4747
48-
on focus
49-
pagefind.preload('')
50-
end
51-
5248
on input debounced at 200ms
5349
if my value is ''
5450
empty #search-results
@@ -132,6 +128,8 @@ title: hyperscript
132128
</div>
133129
<script type="module">
134130
window.pagefind = await import("/pagefind/pagefind.js");
131+
window.pagefind.init();
132+
window.pagefind.preload('a');
135133
</script>
136134
</body>
137135
</html>

0 commit comments

Comments
 (0)