We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e00f6ac commit 5fa7b6cCopy full SHA for 5fa7b6c
src/components/store.ts
@@ -96,11 +96,9 @@ export async function preloadFrontmatter() {
96
updateNavigationTitle(fm.path, fm.title);
97
}
98
99
- // Build search index in the background — don't block page rendering.
100
- // Each page's raw MDX is fetched individually, so for large sites this
101
- // can be hundreds of requests. We batch them to avoid overwhelming the
102
- // browser's connection pool.
103
- addPreloadedContentToSearch();
+ // Build search index in the background after the page has fully rendered.
+ // Delay avoids competing with the route chunk for network connections.
+ setTimeout(() => addPreloadedContentToSearch(), 2000);
104
105
106
} catch (error) {
0 commit comments