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

feat(gatsby-remark-images): Add support for native lazy loading #16448

Conversation

gabefromutah
Copy link
Contributor

@gabefromutah gabefromutah commented Aug 7, 2019

Description

gatsby-image has already implemented this feature a while back. Now that Chrome 76 is available, let us also update gatsby-remark-images to support lazy-loading. This is one of my first PRs and I'm not 100% certain I've covered all the areas to make this happen.

Fixes #15716

@gabefromutah gabefromutah requested review from a team as code owners August 7, 2019 21:42
@gabefromutah gabefromutah force-pushed the topics/gatsby-remark-images-lazy-loading branch from cc85dee to 7115433 Compare August 7, 2019 21:50
@KyleAMathews
Copy link
Contributor

Nice!

Perhaps we could default to lazy?

Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I went ahead and added a small warning in case the user passes in an invalid value

Thank you so much @gabefromutah 👍

@sidharthachatterjee sidharthachatterjee changed the title Add lazy loading option to gatsby-remark-images feat(gatsby-remark-images): Add support for native lazy loading Aug 11, 2019
@sidharthachatterjee sidharthachatterjee added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Aug 11, 2019
Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@gatsbybot gatsbybot merged commit 47d8032 into gatsbyjs:master Aug 11, 2019
@sidharthachatterjee
Copy link
Contributor

Published in [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lazy load for gatsby-remark-images
5 participants