oli-laban / alpine-tailwind-lightbox

A simple lightbox for AlpineJS and Tailwind CSS projects.
MIT License
1 stars 1 forks source link

Lazy Load Images? #2

Open shaunrobinson opened 1 week ago

shaunrobinson commented 1 week ago

Is there any way to only load the images once someone actually clicks a thumbnail?

Currently every image is loaded as soon as the page loads, which can make it quite a heavy page if you want to have an optional gallery only appear when someone clicks.

Thanks!

shaunrobinson commented 4 days ago

I see you added this feature but kept the issue open, does it work? Thanks!

oli-laban commented 3 days ago

@shaunrobinson Yes, just have some other changes to release alongside it. Will hopefully get chance to publish the new version tomorrow

oli-laban commented 2 days ago

@shaunrobinson This is now released in 1.1.0. Take a look at the updated readme

shaunrobinson commented 19 hours ago

Thanks, works great!