-
Notifications
You must be signed in to change notification settings - Fork 49
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
Images is loaded twice with different initiators ImageRef.js lazy-loading #125
Comments
Hi @maxhaensel, thnx for bringing this up. Seems to be that gatsby changed the The only workaround I could find is setting And to really quickly explain, why I can't just disable the
So nope, sadly no way around that ; ). Best, Tim. |
Hi there! |
Ok thx for investigating the issue :) Too bad that there is no solution yet :/ |
For us, it's even worse seeing images loaded 3 times |
This is an upstream issue to |
Any news on that? |
Hi there! Is there any simple and properly working way to set the background image in Gatsby? Unfortunately, this plugin makes multiple requests for every size of every image. Is the Gatsby project still alive? |
Description
Hi we have the flowing Problem:
GBI loads the image sometimes twice. It has sometimes too different initiators the ImageRef.js and the index document itself. I guess there is some preloading-logic baked in.
The Problem is, when the ImageRef.js is starting the download it remove the placeholder and display a blank or colored-area, then the index is also starting the download but must wait until the ImageRef.js is finished. So there is a long time where no image is displayed
Also i have to load the Image twice and have to wait for both images.
Is there a way to disable the ImageRef.js logic? Or is there some tricky hack to avoid such a behavior.
Thanks a lot
Steps to reproduce
I Cloned your Example-Project: https://github.com/timhagn/gbitest
I added a big-blank-div on top
Setting the Network in Chrome to Slow 3G
Starting to scroll slowly to the bottom of the page
Expected result
Maybe disable the ImageRef.js-logic? I´am not sure whats happen than :)
Actual result
Loads the Image only once
Environment
OS: macOS Catalina
Browser: Chrome - Version 84.0.4147.105 (Offizieller Build) (64-Bit)
Browser IntersectionObserver (no polyfil)
The text was updated successfully, but these errors were encountered: