github robrotheram/gogallery v5.2
v5.2 Infinite scrolling

latest releases: v6.1.1, v6.1.0, v6.0.1...
22 months ago

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

Don't miss a new gogallery release

NewReleases is sending notifications on new releases.