Friday, June 10, 2022

Magento 2: Show Loader till Ajax Call not Completed

For Ajax requests in Magento 2, you need to display loader on the pages as the request might take more or less depending on the data to be fetched, types of server and processing time etc. 



The fundamental benefit of showing loader is it facilitates people to know if the request is in progress and the response is awaited. 

 

At a moment, the loader can be started and once on receiving the response, it is stopped. To stop users from carrying out any activities, until the response is received, it is possible to show loader till Ajax call not completed


To get more information, you need to refer the article at: https://meetanshi.com/blog/magento-2-show-loader-till-ajax-call-not-completed/


No comments:

Post a Comment