Skip to content

Commit 58c50f9

Browse files
committed
improve search time w/preload
1 parent 009314b commit 58c50f9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

www/_includes/layout.njk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ title: hyperscript
4545
end
4646
end
4747
48+
on focus
49+
pagefind.preload('')
50+
end
51+
4852
on input debounced at 200ms
4953
if my value is ''
5054
empty #search-results

0 commit comments

Comments
 (0)