-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Description
Description
We are trying to upgrade to gatsby-plugin-image
(from gatsby-image
), but images using the new GatsbyImage
component are flickering. The following issue seems to describe the same issue, but the last comment says resolved, so I created another issue: #29911
Here is video of our website using gatsby-plugin-image": "^1.9.0-next.0"
(same results for 1.7.1
, but some threads of github suggest using next
).
gatsby-plugin-image-next-720p.mov
Steps to reproduce
The issue appears to only happen on production builds (ie. gatsby build
, not gatsby develop
).
Here is a link to our preview build on Gatsby Cloud that has the issues:
https://build-75442147-2150-4290-bcfc-939c539e2187.gtsb.io/
I can't share the code for our production site, so I created a repo with a minimal example that shows the issue, which can be found in the gatsby-plugin-image-latest
branch.
https://github.com/chrisworman-pela/gatsby-datocms-sandbox/tree/gatsby-plugin-image-latest
Here is a video of what I'm seeing in this minimal example. Note that I adjusted the network settings in Chrome to simulate a slower connection so the issue is emphasized.
gatsby-plugin-image-latest-flicker-latest-720p.mov
Expected result
Images that use the <GatsbyImage>
component should not flicker/blink.
Actual result
Images that use the <GatsbyImage>
component flicker/blink.
Environment
System:
OS: macOS 11.4
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.17.1 - ~/.nvm/versions/node/v14.17.1/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.13 - ~/.nvm/versions/node/v14.17.1/bin/npm
Languages:
Python: 2.7.16 - /usr/bin/python
Browsers:
Chrome: 91.0.4472.114
Edge: 91.0.864.54
Firefox: 83.0
Safari: 14.1.1
npmPackages:
gatsby: ^3.7.2 => 3.7.2
gatsby-plugin-image: ^1.9.0-next.0 => 1.9.0-next.0
gatsby-plugin-sharp: ^3.7.1 => 3.7.1
gatsby-source-datocms: ^2.6.16 => 2.6.16
gatsby-source-filesystem: ^3.7.1 => 3.7.1
gatsby-transformer-sharp: ^3.7.1 => 3.7.1