DEV Community

Discussion on: Best way to lazy load images for maximum performance

Collapse
 
huncyrus profile image
huncyrus

Quite interesting way. Did you consider to use Observable for lazy loading (e.g: loading only when the image must be shown/render?

Collapse
 
adrianbdesigns profile image
Adrian Bece

Thank you. I went with native lazy loading (browser implementation) and avoid JS altogether for best performance and less dependencies. But for fallback JS plugin, you can use the Observable. I think that more popular plugins use them by default.