Best way to load image #2199
andriiradkevych
started this conversation in
General
Replies: 1 comment
-
That web.dev article from 2019 about lazy loading images is not up to date in terms of what the platform offers. Since it was written all browser added support for the <img loading="lazy" src="image.jpg" alt="..." /> To show a blurry low resolution preview before the image is loaded the typical solution is to set it via CSS as a background image. The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see that
fresh
doesn't have any solution on image loading process. From existing solutions which I've found I see that I can use lazy loading , described here https://web.dev/articles/lazy-loading-imagesbut for this approach I need some kind of compressor, for making image which I want to load with bad quality , and then when it is visible , load image with good one. Is there any solution , which you can share ? Or I just have to make some compression , and that's it ?
Beta Was this translation helpful? Give feedback.
All reactions