diff --git a/InfiniteScrollPager.php b/InfiniteScrollPager.php index e83bf2e..418c137 100644 --- a/InfiniteScrollPager.php +++ b/InfiniteScrollPager.php @@ -255,6 +255,6 @@ protected function initializeInfiniteScrollPlugin() $contentLoadedCallback = Json::encode($this->contentLoadedCallback); $this->view->registerJs("$('" . $this->pluginOptions['contentSelector'] . "').infinitescroll(" . $pluginOptions . ", " . $contentLoadedCallback . ");", - View::POS_END, $this->widgetId . '-infinite-scroll'); + View::POS_LOAD, $this->widgetId . '-infinite-scroll'); } }