This entire thing should be significantly simplified as well. It also looks like there is no lazy loading/infinite scrolling behavior at all, causing all pages to be loaded at the same time during initialisation with the obvious browser slowdown as a consequence. The infinite scrolling behavior was all present in the branch that this PR should have been based on, so I'm not entirely sure where it has gone.