You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use something like medium.com's progressive image loading, so first load a super-low-res and super-small version of each thumbnail - this should feel instant. But display it with a good blur filter so that it looks good. These images should probably be pre-process so on the server so that they are available without any image processing required on the server side.
Then, in parallel request the "full" resolution of the image (full resolution as in the perfect size for the particular view port), optionally lazily as you scroll down the list. These "full" resolution images can be dynamically requested and thus could trigger a server-side image processing step, that should be ok as it will only be done once on the server - then they'll be saved in the cache on disk.
Then smoothly transition into the full-res images as they downloaded.
Progressively load images
Use something like medium.com's progressive image loading, so first load a super-low-res and super-small version of each thumbnail - this should feel instant. But display it with a good blur filter so that it looks good. These images should probably be pre-process so on the server so that they are available without any image processing required on the server side.
Then, in parallel request the "full" resolution of the image (full resolution as in the perfect size for the particular view port), optionally lazily as you scroll down the list. These "full" resolution images can be dynamically requested and thus could trigger a server-side image processing step, that should be ok as it will only be done once on the server - then they'll be saved in the cache on disk.
Then smoothly transition into the full-res images as they downloaded.
Use responsive images
Basically serve the correct image resolution for each device. One alternative is to use
srcset
and provide 1x, 2x, 3x etc resolutions, see https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images
Or perhaps use
devicePixelRatio
directly in Elm/js?https://developer.mozilla.org/en-US/docs/Web/CSS/image-set
Resources
Todo
The text was updated successfully, but these errors were encountered: