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 spinner before the image lazy loads #1629

Open
ericjoy94 opened this issue Sep 2, 2019 · 3 comments
Open

show a spinner before the image lazy loads #1629

ericjoy94 opened this issue Sep 2, 2019 · 3 comments

Comments

@ericjoy94
Copy link

I am using react-slick to show a bunch of carousels on the page.
The carousels slides are lazy loaded by adding the lazyLoad:'onDemand' to the settings in the carousel. Now I wish to add a spinner before the image loads in the slides.
I am not very sure how to do this.

@minicopper
Copy link

i want to show a placeholder image before the image lazyload ,i don't have a good idea ,wish to add a image placeholder

@ericjoy94
Copy link
Author

Any updates ?

@ericjoy94
Copy link
Author

Can it be a possibilty to use IntersectionObserver API

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