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

show a placeholder for the images until they get loaded #345

Open
aguaviva opened this issue Aug 1, 2022 · 1 comment
Open

show a placeholder for the images until they get loaded #345

aguaviva opened this issue Aug 1, 2022 · 1 comment

Comments

@aguaviva
Copy link

aguaviva commented Aug 1, 2022

Please describe the feature you want to be implemented.
If a size is specified in the img tag, show a placeholder of that size until the picture is loaded

Explain why the feature is useful
This eliminates the images poping up and also the number of layout recalculations on large galleries, this will result on pages loading faster and a predictable layout.

Have you seen it somewhere else?
in Facebook

@gingerchew
Copy link
Collaborator

Hey there @aguaviva,

You could probably achieve this with CSS using this article as an example: https://css-tricks.com/building-skeleton-screens-css-custom-properties/ I don't think you'd need to change any of the HTML, but that is also an option available to you (but it is one of the more advanced ones.)

If GLightbox had a plugin system, I feel like it would be a great candidate. I'd love to hear what others have to say about it though!

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

No branches or pull requests

2 participants