Aljullu / react-lazy-load-image-component

React Component to lazy load images and components using a HOC to track window scroll position.
https://www.npmjs.com/package/react-lazy-load-image-component
MIT License
1.44k stars 109 forks source link

Picture support #49

Open romanlex opened 5 years ago

romanlex commented 5 years ago

Are you planning to add tag picture support?

rtymchyk commented 4 years ago

You can use LazyLoadComponent to hold a picture if anyone is looking for an alternative.

Aljullu commented 4 years ago

Hi @romanlex, as @rtymchyk said, you can wrap any element, for example <picture>, with LazyLoadComponent.

A LazyLoadPicture component might be interesting anyway, so PRs are accepted if somebody wants to implement it. :+1: