nanostudio-org / nanogallery2

a modern photo / video gallery and lightbox [JS library]
https://nanogallery2.nanostudio.org
761 stars 112 forks source link

Duplication of galleries when rendering many of them #50

Closed rodrigo815 closed 7 years ago

rodrigo815 commented 7 years ago

My homepage ( http://rodrigosieja.com.br/index_old.html ) has 4 galleries. Some gallery or galleries will appear randomly - either of the wrong "section", or repeating itself on the other sections.

The occurrence is random, mostly when scrolling down before the page is fully loaded.

Screenshot:

2017-06-17 11_29_42-fotografia - rodrigo sieja

Kris-B commented 7 years ago

I could not reproduce this issue, but:

rodrigo815 commented 7 years ago

Yes, I'm using bLazy. They already have unique ids, so maybe bLazy is messing it all. I'll try using album, coming back soon.

rodrigo815 commented 7 years ago

Oops, the divs didn't have unique IDs (despite different code in data-nanogallery2). That was exactly the issue, now fixed. And I can use bLazy. Thanks!

Kris-B commented 7 years ago

;-)

Kris-B commented 7 years ago

BTW: nanogallery2 implements natively lazy load, so not sure that bLazy is really useful....