preactjs / preact-www

:book: Preact documentation website.
https://preactjs.com
MIT License
358 stars 500 forks source link

chore: Bump docsearch to v3 #1106

Closed rschristian closed 6 months ago

rschristian commented 6 months ago

Forgive my ignorance as I'm quite unfamiliar with docsearch, but do we need to manually trigger a new crawl or something? I've noticed the content is somewhat out-of-date; Signals, for example, are entirely missing from the search

Decreases overall JS size by 24kb & CSS by 4kb.

Docsearch is no longer lazily loaded (via requestIdleCallback), but I'm somewhat dubious as towards the value, as it's going to be loaded quickly enough in the vast majority of situations and so another network request seems slightly wasteful. This does increase the main JS bundle by 23kb though.