Closed slusarz closed 3 months ago
Looks great, thanks for your contribution.
I'll come down and test it, and will release it in the next version as soon as possible. @ You
I merge it first, and then I will add a option to the debounce time to make it controllable.
you can try vitepress-plugin-pagefind@0.4.5
and I add option delay
, default value 300(same as in the official documents)
export interface SearchConfig {
// ...other
/**
* debouncedSearch delay
* @default 300
*/
delay?: number
}
This provides a much smoother search UX, as it minimizes the search queries executed in addition to leveraging preloading.
See https://pagefind.app/docs/api/#debounced-search and https://pagefind.app/docs/api/#preloading-search-terms