Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MrShaikh1357 opened this issue Jan 5, 2021 · 3 comments

Comments

@MrShaikh1357
Copy link

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
Copy link
Author

any update on this ?

@miromannino
Copy link
Owner

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
Copy link
Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants