Load search engine code only if necessary #9604
CharlesNepote
started this conversation in
Feature Requests
Replies: 1 comment 2 replies
-
These are shared and cached across all pages in a website, so although I sympathize with the overall goal, the gain is not as large as you'd expect. We have other things higher in our priority list, so don't expect that fix in the near or medium term. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I would like to improve first page load, and I guess the majority of the users are rarely using the search engine, if ever. This one is currently always loaded: quarto-search.js and autocomplete.js represent 37KB + 93KB = 130 KB which are useless most of the time.
By the way, it seems possible to launch the search engine on demand (using events such as onmouseover, onfocus...). This article is showing the way: https://hacks.mozilla.org/2021/08/mdns-autocomplete-search/
Beta Was this translation helpful? Give feedback.
All reactions