Home Page now support infinite scrolling
When loading my own site with 1200 images even though we lazy load the images the homepage was getting to around a few mb in size of pure html. This becomes a performance problem as that is a lot of html to download and parse. Which was noticeable on phones
This update now implements infinite scrolling on the homepage only.
How it works:
When building the pages it takes the list of images and create multiple pages of around 20 images per page.
You can get to the pages by going to https://site-url/page/0
On the home pages there is a small amount of vanilla JS that detects when you have reached the bottom of the page and loads in the next page.
This should reduce the time to first load the site.
Also small update to fix a few bugs I noticed in my gallery when switching to full static site generation
Full Changelog: v5.1...v5.2