commercetools-docs-kit icon indicating copy to clipboard operation
commercetools-docs-kit copied to clipboard

Chrome: Search bar doesn't open on first load until after 5 seconds

Open jocelyn-dunkley opened this issue 1 year ago • 0 comments

This is just an issue on Chrome (Version 123.0.6312.105) - I tested on Safari and Firefox and it works.

On first load the search bar doesn't open until about 5 seconds later. I think there is some load delay with some of the scripts that make the search work. I noticed in the network tab the manifest.webmanifest is the last thing to load on first load. Then after a couple seconds there's a lot of other requests that are loaded. I assume something that was async is tied to the search bar.

Solutions here would be:

  1. Make search bar script not async since it's above the fold
  2. Hide search bar until appropriate script is loaded

jocelyn-dunkley avatar May 31 '24 05:05 jocelyn-dunkley