miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.69k stars 299 forks source link

Any Event which triggers after rendering of all the images in case of multiple sections ? #348

Open MrShaikh1357 opened 3 years ago

MrShaikh1357 commented 3 years ago

Suppose if we have multiple sections of justified-galley and it has big count of photos. than it may take time to load all the images in all the section.

So do we have any specific event which triggers after rendering of all images in all sections. OR any other alternate way of doing it ?

MrShaikh1357 commented 3 years ago

any update on this ?

miromannino commented 3 years ago

Hello @MrShaikh1357 I'd suggest you use an approach similar to the infinite scroll example:

http://miromannino.github.io/Justified-Gallery/endless-scroll/

You can do it automatically by loading more photos after an event like jg.complete. Events examples are at: http://miromannino.github.io/Justified-Gallery/options-and-events/

MrShaikh1357 commented 3 years ago

Hi @miromannino,

Thank you for replying on this.

Actually in my case, I wanted some method to call after all images in every section gets assigned with width & height. So basically I want some trigger event once all the images and layout of each image are set(no images should left to render).