Search page flickers no results -> results

Summary

I've noticed that sometimes you can see the search page flickering from no results to showing results without a page reload.

Steps to reproduce

  1. Open https://gitlab.com/gitlab-com/gl-infra/k8s-workloads/gitlab-com
  2. Perform a code search from the command palette. For example, "replicas:"

What is the current bug behavior?

Search page flickers from no results to showing results

What is the expected correct behavior?

Search results are shown right away

Relevant logs and/or screenshots

Screen_Recording_2024-04-25_at_10.17.09

Browser: Arc 1.39.1 (49071)

Possible fixes

cc @tbulva

Edited by Dmitry Gruzd