When an AJAX request is sent to fetch records from the server then it may take time depending on the data processing or the number of records.
If the AJAX request takes more time then at the Client-side there is no visible change is been displayed and the user doesn’t know whether its request is in progress or not.
You can display a loading image or text message on the page when the AJAX request is in progress and hide it after getting a response.
In the demonstration, I am displaying a loading image when sending an AJAX request.