withastro / starlight

🌟 Build beautiful, accessible, high-performance documentation websites with Astro
https://starlight.astro.build
MIT License
4.74k stars 510 forks source link

[Algolia Search] Bad INP on mobile #1774

Closed PrivatePuffin closed 5 months ago

PrivatePuffin commented 5 months ago

What version of starlight are you using?

latest

What version of astro are you using?

latest

What package manager are you using?

npm

What operating system are you using?

Linux

What browser are you using?

Chrome

Describe the Bug

On mobile, Algolia Search leads to a significant INP increase on google metrics:

image

This negatively affects website rankings so should definately be looked at.

Link to Minimal Reproducible Example

https://truecharts.org

Participation

delucis commented 5 months ago

Thank you for the report @Ornias1993! I’d raise this with the Algolia team — the Starlight component is only a very thin wrapper around their @docsearch/js package, so I don’t think there is a lot we can do on our end to improve this unfortunately.