The AJAX Cart extension provides a better shopping experience by allowing shoppers to add products to the cart from any page of your site. Works for all product types. Related, cross-sell product supported right in the pop-up. Custom redirect, and more features included.
Please check more details here: https://www.ulmod.com/ajax-cart-for-magento-2.html