Skip to content

feat: preload search index when page is idle#1811

Merged
SoonIter merged 1 commit intomainfrom
preload_search_index_0205
Feb 5, 2025
Merged

feat: preload search index when page is idle#1811
SoonIter merged 1 commit intomainfrom
preload_search_index_0205

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Currently Rspress only fetches the search index file when the user focused on the search panel.

This PR allows Rspress to preload the search index when the page is idle, which should improve the search experience.

image

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 5, 2025

Deploy Preview for aquamarine-blini-95325f ready!

Name Link
🔨 Latest commit 355183e
🔍 Latest deploy log https://app.netlify.com/sites/aquamarine-blini-95325f/deploys/67a327f11e72800008dc0bbd
😎 Deploy Preview https://deploy-preview-1811--aquamarine-blini-95325f.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 76 (🔴 down 15 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@SoonIter SoonIter enabled auto-merge (squash) February 5, 2025 09:02
@SoonIter SoonIter merged commit 77c24ec into main Feb 5, 2025
@SoonIter SoonIter deleted the preload_search_index_0205 branch February 5, 2025 09:07
@chenjiahan chenjiahan mentioned this pull request Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants