Closed rawwerks closed 9 months ago
My first guess is that Cloudflares rocket loader is somehow interfering with jQuery lazy (which is used by hugo-shortcode-gallery to lazily load images). Can you check if the problem still occurs when the site is not using rocket loader?
i should have been more clear above, i'm having the same behavior with hugo server
on localhost:
(i did check without rocketloader just to see, but that didn't do anything.)
I played a little with the website and came up with these results:
When preventing bundle.min.css to be loaded, lazy loading works correctly. From this it can be concluded that the other JS libraries do not sabotage lazy loading.
The bug is caused by the interaction of the layout and jquery lazy. Debugging this without having access to the code is quite difficult. Furthermore I don't know the inner details of jQuery Lazy.
To get to the bottom of the problem I would proceed as follows:
I wish you good luck with it, if you have come to a result I would be happy about a pull request.
Due to inactivity and because I cannot resolve this issue without further input, I will close this issue.
(first off - i love this tool! thank you so much for making and maintaining it.)
any idea what might be behind this behavior?
basically - the portion of the gallery that is offscreen does not un-blur after scrolling down:
https://github.com/mfg92/hugo-shortcode-gallery/assets/19483938/720a6576-88bd-4717-8e77-a73c6e042296
i can force the final row to unblur by:
i was able to reproduce this behavior on OS X Firefox and Safari
the problem doesn't seem to be there on mobile (where the gallery is forced into a single vertical column)
here's the code, which is almost exactly your example:
(in case useful, here is the page in question: https://raw.works/dalle-3-can-almost-spell/)