Minimum Resources required for omnibox list component?
We are using Coveo Omnibox List and Search box views in header of our page, but in order to use omnibox and search box we have to include Search view resources and search box resources which loads large files such as CoveoJsSearch.WithDependencies.min.js
Do we have to load all the files in our scenario or is there any individual component level js files that we can use which has less size?
Another question i have is, if we have added resources at the top of the page, is it required to add it again in body if we are using coveo search box component in the body again?
In the Legacy UI (which you are using looking at your included files), you need to include the full `Coveo Search Resources` to have the `Omnibox Result List` component.
In the Coveo for Sitecore Hive UI, you only need to include the `Coveo Search Resources` since the components are Lazy-loaded depending on what you are using on the page.
> Another question i have is, if we have added resources at the top of the page, is it required to add it again in body if we are using coveo search box component in the body again?
Absolutely not, once the resources are included, you don't need to include it again.
You should use only one resources component between:
- Coveo Search Box Resources (A subset of Coveo Search Resources that can be used on pages where you only have a Coveo Search Box component and nothing else)
- Coveo Search Resources
When you have an Coveo Omnibox Results List, the full Coveo Search Resources component is required and you can then remove the Coveo Search Box Resources from your page.
The resources have to be included only once on the page, whatever the number of Coveo components you add to that page.
I hope this helps.