In jQuery, the ajaxStop() method is used to specify a function that runs when an AJAX request completes.
$(document).ajaxStop(function());
This method accepts only one parameter, which is the function that gets invoked when a request completes.
We click the Get Product Data button and make an AJAX request on https://reqres.in/api/products to get product details.
When the AJAX request completes, the ajaxStop() method will be invoked.