commercetools-docs-kit
commercetools-docs-kit copied to clipboard
Chrome: Search bar doesn't open on first load until after 5 seconds
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:
- Make search bar script not async since it's above the fold
- Hide search bar until appropriate script is loaded