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

[gatsby-plugin-image] Images flickering on route change using GatsbyImage #34190

Closed
2 tasks done
Glazy opened this issue Dec 3, 2021 · 15 comments · Fixed by #35226
Closed
2 tasks done

[gatsby-plugin-image] Images flickering on route change using GatsbyImage #34190

Glazy opened this issue Dec 3, 2021 · 15 comments · Fixed by #35226
Labels
status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. topic: media Related to gatsby-plugin-image, or general image/media processing topics type: bug An issue or pull request relating to a bug in Gatsby

Comments

@Glazy
Copy link

Glazy commented Dec 3, 2021

Preliminary Checks

Description

When moving from one page to another any images that are rendered using GatsbyImage from gatsby-plugin-image will briefly flicker/blink.

I have created a minimal reproduction of this which can be found attached to this issue alongside the following screen recording.

Also checked with gatsby and all associated plugins using version next but still find the same issue.

Screen.Recording.2021-12-03.at.17.11.31.mov

Reproduction Link

https://github.com/Glazy/gatsby-image-flicker-repro

Steps to Reproduce

  1. Clone and run reproduction repository
  2. Use link to toggle between / and /about

Expected Result

The image shouldn't flicker and should remain rendered at all times (like the regular img tag included in the example).

Actual Result

The image flickers causing a jarring UX.

Environment

System:
    OS: macOS 12.0
    CPU: (10) arm64 Apple M1 Pro
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 17.0.1 - ~/.nvm/versions/node/v17.0.1/bin/node
    npm: 8.1.0 - ~/.nvm/versions/node/v17.0.1/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Firefox: 94.0.2
    Safari: 15.0
  npmPackages:
    gatsby: next => 4.3.0 
    gatsby-plugin-image: next => 2.3.0 
    gatsby-plugin-sharp: next => 4.3.0 
    gatsby-source-filesystem: next => 4.3.0 
    gatsby-transformer-sharp: next => 4.3.0

Config Flags

No response

@Glazy Glazy added the type: bug An issue or pull request relating to a bug in Gatsby label Dec 3, 2021
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 3, 2021
@leithonenglish leithonenglish 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 Dec 17, 2021
sungik-choi added a commit to sungik-choi/gatsby-starter-apple that referenced this issue Dec 30, 2021
try to fix flickering img, but cannot solve it. cf. gatsbyjs/gatsby#34190
@github-actions
Copy link

github-actions bot commented Jan 7, 2022

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

@github-actions github-actions bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Jan 7, 2022
@Glazy
Copy link
Author

Glazy commented Jan 7, 2022

Pinging to keep this issue open.

@github-actions github-actions bot removed the stale? Issue that may be closed soon due to the original author not responding any more. label Jan 7, 2022
@github-actions
Copy link

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

@github-actions github-actions bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Jan 27, 2022
@Glazy
Copy link
Author

Glazy commented Jan 28, 2022

Pinging again to keep this issue open.

@github-actions github-actions bot removed the stale? Issue that may be closed soon due to the original author not responding any more. label Jan 28, 2022
@github-actions
Copy link

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

@github-actions github-actions bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Feb 18, 2022
@Glazy
Copy link
Author

Glazy commented Feb 18, 2022

Pinging again to keep this issue open.

@github-actions github-actions bot removed the stale? Issue that may be closed soon due to the original author not responding any more. label Feb 19, 2022
@ConnorMcF
Copy link

+1, also seeing this.

@github-actions
Copy link

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

@github-actions github-actions bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Mar 16, 2022
@Hahlh
Copy link
Contributor

Hahlh commented Mar 16, 2022

Not stale

@github-actions github-actions bot removed the stale? Issue that may be closed soon due to the original author not responding any more. label Mar 17, 2022
@github-actions
Copy link

github-actions bot commented Apr 6, 2022

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

@github-actions github-actions bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Apr 6, 2022
@Magofoco
Copy link

Magofoco commented Apr 6, 2022

I am having the same issue

@LekoArts LekoArts removed the stale? Issue that may be closed soon due to the original author not responding any more. label Apr 6, 2022
@LekoArts LekoArts added the status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. label Apr 6, 2022
@LekoArts
Copy link
Contributor

LekoArts commented Apr 6, 2022

This will be fixed by #35226

@adamatronix
Copy link

adamatronix commented Jan 11, 2023

I am seeing something similar wit 2.25.0. I see a flash with the alt text then the image. No placeholder. I should note that it is most notable in Safari Version 16.1 and not chrome. I see it on iOS chrome.

Screen.Recording.2023-01-12.at.12.03.01.PM.mov

@airfortech
Copy link

have flickering too with "gatsby-plugin-image": "^3.10.0".
Is there any version of package that works fine?

@EKarpinsky
Copy link

@wardpeet can this be reopened please? Many people are still experiencing this issue (see latest comments)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. topic: media Related to gatsby-plugin-image, or general image/media processing topics type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants