Performance Optimization

Lazy loading

caution

This section is incomplete.

See example.

Preconnect

You can hint the browser that the website will load data from Algolia, and allows it to preconnect to the DocSearch cluster. It makes the first query faster, especially on mobile.

<link rel="preconnect" href="https://BH4D9OD16A-dsn.algolia.net" crossorigin />
info

If you're using your own DocSearch crawler, you need to change BH4D9OD16A to your Algolia appId.