Magento 2 AJAX Add to Cart Extension comes with the quickest and smoothest add-to-cart process which will allow customers to add products to their cart without refreshing the page.
How to Add Product to cart using Ajax Programmatically in Magento 2