Closed joris-ati4 closed 4 years ago
Feels like this PR breaks bundling again that was fixed in past in https://github.com/Strategery-Inc/Magento2-InfiniteScroll/pull/52
I created https://github.com/Strategery-Inc/Magento2-InfiniteScroll/pull/69 for fixing this
This PR is related to the following issue: https://github.com/Strategery-Inc/Magento2-InfiniteScroll/issues/56
Sometimes the Infinite Ajax Scroll library is called before jQuery is loaded. The page then throws an error and the infinite scrolling doesn't work.
This PR, separates the Infinite Ajax Scroll library from the infinitescroll.js file because it is not recommended to include libraries in AMD module files. The shim also adds a dependency for the external library towards jQuery.