https://mamchenkov.net/wordpress/2013/07/08/infinite-scrolling-in-wordpress-themes/
Infinite scrolling in WordPress themes