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

fix(gatsby-plugin-image): Image flickering (reloading unnecessarily) #32899

Closed
wants to merge 2 commits into from

Conversation

chrismarts
Copy link

Description

It seems like there are situations that cause the isLoaded status to be rechecked which causes the image to fade back in even though it's already loaded.

There is some discussion here where it happens after a page load: #32037

...which is also where this fix comes from, thanks to @plainice

My team experienced this not right after a page load, but when we adjusted the height of a DOM element that contained images using gatsby-image-plugin.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 24, 2021
@zanedev
Copy link
Contributor

zanedev commented Oct 17, 2021

Can we get this merged soon? Still experiencing lots of flickering issues with the new gatsby plugin image

@wardpeet wardpeet self-assigned this Oct 21, 2021
@LekoArts LekoArts added topic: media Related to gatsby-plugin-image, or general image/media processing topics and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Oct 22, 2021
@LekoArts LekoArts changed the title Fix for image flickering (reloading unnecessarily) fix(gatsby-plugin-image): Image flickering (reloading unnecessarily) Oct 22, 2021
@wardpeet
Copy link
Contributor

Hey, Thanks for the PR but it doesn't 100% fix it at the right place. This one does #33732. Thank you for waiting and your PR! We really appreciate the work you put in!

@wardpeet wardpeet closed this Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: media Related to gatsby-plugin-image, or general image/media processing topics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants