@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@clidey/dory",
3
3
  "private": false,
4
- "version": "0.44.0",
4
+ "version": "0.45.0",
5
5
  "type": "module",
6
6
  "description": "A CLI tool for building and previewing documentation sites",
7
7
  "keywords": [
@@ -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 — 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();
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) {