Disable infinite scroll in Ghost's Casper theme

The team at Ghost added the ability to disable the infinite scroll in the latest version of the Casper theme (5.4.2). If you want to disable it, go to Settings > Site injection and paste the following code snippet into Site Header:
<script>
document.documentElement.classList.add('no-infinite-scroll')
</script>
This will replace the infinite scroll with a pagination control.
Source:
Infinite homepage scroll prevents quick footer access · Issue #900 · TryGhost/Casper
When you're on the homepage (or tags page), posts keep loading when you reach the bottom. That is quite convenient for keeping the visitor engaged, but it does prevent a visitor from accessing ...
Featured image by Chris Hardy.