stereobooster / react-ideal-image

🖼️ An Almost Ideal React Image Component

Home Page:https://github.com/stereobooster/react-ideal-image/blob/master/introduction.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Load images that are not in viewport when done?

antoninadert opened this issue · comments

When I tried the demo, it seems that LQIP stay for a second in the viewport before the image gets displayed.

I believe it would feel faster if the images that are not in the viewport would start to fully load once they are ready and all images in the viewport have already been loaded.
This way I wouldn't even have to see the LQIP if an image outside of viewport has already been loaded.

So it would do this loading order:

  1. Images in viewport
  2. Images not in viewport

Maybe I missed something? please tell me

This is a feature request I believe.