Skip to content

Add ability to adjust gatsby-image lazy loading threshold #14103

@FraserThompson

Description

@FraserThompson

Summary

I would like to be able to change the "threshold" before an image is loaded. So instead of loading the image as soon as it enters the viewport, I'd like this to be configurable so more images are loaded.

Motivation

I use gatsby-image in an image gallery which can have up to 60 or so photos, displayed in a single column on mobile.

Lazy loading is obviously essential to ensure all 60 aren't downloaded at once, but scrolling through the images isn't a nice experience when you have to wait a second or so for each image to load as soon as it enters the viewport. If we could configure the threshold to load more images before the user gets to them it would improve the experience for users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale?Issue that may be closed soon due to the original author not responding any more.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions