We have ~1200 products in a collection list. Since it takes Webflow search awhile to go through all the records, our “Product Empty Default” component for empty state is showing “No results found” before everything is finished searching.
We want it instead to say “Searching…” until we know the search is finished – otherwise, users are assuming there are no results and changing the search or the page.
Whether we use Webflow interactions or a script, checking the length of the collection item won’t work, since it remains ‘0’ until results are found-- it’s the same problem.
Since Webflow doesn’t provide any direct event or trigger for “Collection List finished loading,” would we need to use the API to implement a solution?
It’s probably something that affects others, so I’m hoping there’s a better way.
It wouldn’t be difficult to build a “still loading” feature, look into mutation observers, you’ll be able to tell when Webflow has loaded the search results.
But your description above doesn’t quite match. 1200 items shouldn’t be relevant to the search, everything is pre-indexed, so I think you’re doing something different here. If you’ve had someone else design your search feature for you, look into the code, it sounds very much like a Finsweet CMS filter + CMS load setup since you mentioned you’re working with a collection list.
CMS Nest in particular is known for some performance challenges, because of the way it organizes and accesses data. If you had a full collection list with 100 items and containing FS-Nest-populated nested lists, a first time visitor might easily need to download 101 HTML page to populate that first page they’re viewing.