Done Waiting
aura:doneWaiting
Indicates that the client-side framework is done waiting for a response to a server request, which is always preceded by an aura:waiting event.
The aura:doneWaiting event is deprecated. To determine when an action is complete, use the response status in an action's callback instead. The aura:doneWaiting application event is fired for every server response, even for responses from other components in your app. Unless your component is running in complete isolation in a standalone app and not included in Lightning Experience or the Salesforce mobile app, the container app may trigger your event handler multiple times. This behavior makes it difficult to handle each event appropriately.
This event is automatically fired if no more response from the server is expected.
Handle the aura:doneWaiting event in a client-side controller. A component can have only one <aura:handler> tag to handle this event.
This example hides a spinner when aura:doneWaiting is fired.
This client-side controller fires an event that hides the spinner.
