Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

No way to load images that are going to be visible soon? #2

Open
hecktarzuli opened this issue Aug 9, 2018 · 2 comments
Open

No way to load images that are going to be visible soon? #2

hecktarzuli opened this issue Aug 9, 2018 · 2 comments

Comments

@hecktarzuli
Copy link

hecktarzuli commented Aug 9, 2018

This seems like a good start, but unless I'm blind I don't seem to see a way to have images load that will be visible soon. Otherwise while scrolling you will always see the image loading which is a UX no-no. We should be able to load the images just below the current fold.

@hecktarzuli hecktarzuli changed the title No way to trickle load, or load images that are going to be visible? No way to load images that are going to be visible soon? Aug 9, 2018
@mazipan
Copy link
Owner

mazipan commented Aug 10, 2018

Cool, PR are very welcome.

@hecktarzuli
Copy link
Author

This MAY be possible via Intersection Observer API using root margins param, I haven't played yet.

https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants