How to fix M2 Infinite Scroll issue - IASPagingExtension is not defined

Created by Support Agent, Modified on Sun, 19 Apr at 11:08 PM by Support Agent

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.

Explore more powerful extensions:


I hope that the info is helpful. Could you please check our sites also to see which extension meets your needs?
If you have any further queries, please feel free to contact us at sales@bsscommerce.com or create a ticket. We'd like to help you.


To get to know us, here are some information:


BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


Discover our extensions: https://bsscommerce.com/magento-2-extensions.html

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article