You might consider the Grid Search package in the App Store. Demo here. It offers a set of widgets that search on a grid or list, and automatically shows a progress bar if the search runs for more than 250ms.
There are two solutions for this.
one is when you call an API through a Microflow:
You can set up the progress bar(with or without message) by selecting the Microflow setting option as shown in the picture when you call a microflow.
Second is you can choose the GIF image and based on some boolean value, while loading the results you can show the image until you get the results.