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

createSkeletonElement for images switch onLoad #16

Open
joshferrell opened this issue May 18, 2018 · 0 comments
Open

createSkeletonElement for images switch onLoad #16

joshferrell opened this issue May 18, 2018 · 0 comments

Comments

@joshferrell
Copy link

Is it possible to make it so that when you create a skeleton element for an image tag, that it waits for the onLoad event to occur before switching? Or for there to be a manual keep on skeleton state as a prop?

Basically I'd like to be able to have my component wait for the image source to be passed down from a fetch, then wait until the onLoad event has occurred and then switch to show the image. Otherwise, there is a flash.

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

1 participant