Fix infinite scrolling to be more smooth

- Waits until page is loaded
- Shows AJAX loading indicator properly