More efficient way of handling window resize by caching HTML of list container. Fixes bug that reset pagination every time listing was selected on small viewports.