Improve search UX by adding a loader while initializing the search
See original GitHub issueI checked that…
- … the documentation does not mention anything about my idea
- … to my best knowledge, my idea wouldn’t break something for other users
- … there are no open or closed issues that are related to my idea
Description
Add a loading animation to search input field until the search_index file gets loaded and parsed
Use Cases
When the search_index.json file is large for larger document sites, It takes a while to load and parse the file in the browser, Until it completes this process, User feels like search operation is not working, because we don’t give any feedback until the search initialization complete (On click search input, loads search_index.json, parse it)
Screenshots / Mockups
This is how we have customized search initialization in our docs

Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:20 (18 by maintainers)
Top Results From Across the Web
Stop Using A Loading Spinner, There's Something Better
Stop using those boring loading spinners in your user interfaces. Seriously. It's killing your apps' experience more than you know. A loading spinner...
Read more >Your Loading Spinner Is a UX Killer! Here's an Alternative
Using a loading spinner is terrible for user experience. Learn why, how to make them better, and about the best alternative yet: skeleton ......
Read more >How To Improve Advanced Search UX? - UX Design World
The advanced search page displays all available parameters on the front UI and the user does not have to add parameters explicitly.
Read more >Scoped Search: Dangerous, but Sometimes Useful
Scoped Search: Dangerous, but Sometimes Useful. Summary: Restricting search to a specific area of a website can provide better results, faster.
Read more >UX Design Patterns for Loading - Pencil & Paper
Loading UX takes careful consideration of both the user's and the system's context to use the appropriate loading pattern.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

0145f6d2 adds a hint that the search is being initialized. Again, the last value is re-emitted, when search is successfully initialized. We could add some more animations to it, but I think it’s a start.
Tested with Fast 3G on the official docs:
Thanks! Fixed in 671ec724.