Issue: When I set production mode in my website,  Infinite Scroll stops working. It shows Error :Uncaught ReferenceError: IASPagingExtension is not defined


Solution: 

The issue happens when admin enables JavaScript Bundling in Stores -> Configuration -> Developer -> Javascript Setting -> Enable JavaScript Bundling = Yes




To fix this issue, you could edit etc/view.xml file of your current theme: app/design/frontend/<your_vendor_name>/<your_theme_name>etc/view.xml

Add this part of code into <exclude>: <item type="file">Bss_InfiniteScroll::js/jquery-ias.min.js</item>



You could refer the solution here https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-create.html


For more information about product, please refer Infinite Scroll for Magento 2 page.

If you need any further assistance, please feel free to contact us.

Please visit our site for more useful Magento 2 Extensions: https://bsscommerce.com/magento-2-extensions.html