Thanks to the helpful comment from lharby on my previous post, I finally figured out how to implement Infinite Scrolling.
Big thank you!
The only issue now is that the script starts generating a new pagination link after scrolling past 15 posts (which is my set posts-per-page limit for Tumblr)
For example: assets.txmblr.com =======> assets.txmblr.com /page/(2;3;4;...)
Thank you for your assistance!
Here's the code snippet (line 210 -> line 225)
<script>
window.onload = function() {
var elem = document.getElementById('content');
let infScroll = new InfiniteScroll(elem, {
path: '.pagination__next',
append: '.post'
});
}
</script>
</head>
<body>
{block:NextPage}
<a href="{NextPage}" class="pagination__next"></a>
{/block:NextPage}