@clidey/dory 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/store.ts +3 -5
package/package.json
CHANGED
package/src/components/store.ts
CHANGED
|
@@ -96,11 +96,9 @@ export async function preloadFrontmatter() {
|
|
|
96
96
|
updateNavigationTitle(fm.path, fm.title);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
// Build search index in the background
|
|
100
|
-
//
|
|
101
|
-
|
|
102
|
-
// browser's connection pool.
|
|
103
|
-
addPreloadedContentToSearch();
|
|
99
|
+
// Build search index in the background after the page has fully rendered.
|
|
100
|
+
// Delay avoids competing with the route chunk for network connections.
|
|
101
|
+
setTimeout(() => addPreloadedContentToSearch(), 2000);
|
|
104
102
|
}
|
|
105
103
|
}
|
|
106
104
|
} catch (error) {
|