@Suzie and @artur, this seems to have been a simple addition to search bar settings almost two years ago now. A suggestion would be to leave it the way it is as the default and have a simple toggle setting for “No results until the user enters values”. This should be a native feature, because the custom code provided has interactivity issues on the page, including a significant lag in the rendering of the search bar among other stability issues.