Re:Show HN: The smallest and most narcissistic image lazyloa...
by alexza on Thursday December 19, 2019 @08:06AM
(#21834531)
Some browsers like chrome support this functionality natively by setting the image attribute loading="lazy" (https://web.dev/native-lazy-loading/) You could improve your library by adding a check wether the browser supports it natively, if yes use the loading attribute, if no use the visibility observer
[ Parent
| on HN ]