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

Always use gatsby-image when possible #152

Open
bfabio opened this issue Nov 10, 2021 · 3 comments
Open

Always use gatsby-image when possible #152

bfabio opened this issue Nov 10, 2021 · 3 comments

Comments

@bfabio
Copy link
Member

bfabio commented Nov 10, 2021

We should always use gatsby-image for images when possible (ie. use <Img> objects).

fe. Images at https://cloud.italia.it/notizie/ don't use gatsby-image, we should fix that.

@dptdgi
Copy link
Member

dptdgi commented Jun 5, 2024

@bfabio still relevant? Please point out wrong and suggested usage!

@bfabio
Copy link
Member Author

bfabio commented Jun 6, 2024

@dptdgi yes

Take a look at the home page, the images are loaded only when they are about to enter the viewport:

Screencast.from.2024-06-06.11-45-33.mp4

Whereas https://cloud.italia.it/notizie/ loads all the images as soon as you go there:

Screencast.from.2024-06-06.11-49-45.mp4

In general, if the image:

they are not using gatsby-image.

@dptdgi
Copy link
Member

dptdgi commented Jun 7, 2024

Thanks @bfabio, I was thinking about pointing out the issue in the code. Thanks for the effort in showing the problem in the UI. I guess the tag < img > is used instead of < StaticImage >

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

2 participants