You can show/hide Ajax Loader in Magento Request using Built-in Magento Widget while working with ajax related stuff in the browser.
You can start the loader once the ajax request is started and you can stop the loader widget after the response is getting or failed.
Its simple to add loader widget icon for an ajax request. Continue reading “How to show loader widget in ajax call Magento 2?”